- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 Copy List with Random Pointer 深度拷贝,浅度拷贝,Lazy拷贝解析
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.三种拷贝的分析: 深度拷贝,浅度拷贝,Lazy拷贝
2014-01-27 16:50:21 3560
原创 数据结构 《3》----双向链表(带有头节点)
本文参照了 C与指针中双向链表的实现,力求简单明了。双向链表带有一个头节点, 头节点的pre指针指向链表的最后一个node; next指向第一个node; val 表示链表的长度。// copyright @ L.J.SHOU Jan.15, 2014// double-linked-list with a head node#i
2014-01-15 21:48:17 4016 1
原创 数据结构 《2》----基于邻接表表示的图的实现 DFS(递归和非递归), BFS
本文给出了图的基于邻接表表示的实现。实现了DFS, BFS等图的基本操作。
2014-01-13 15:32:41 1952
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人