Commit Graph

199 Commits

Author SHA1 Message Date
wangzheng0822
8d49f28979
Merge pull request #415 from rovast/patch-1
fix spell mistake
2019-11-17 09:23:52 +08:00
ROVAST
d123bbe279
fix spell mistake
null To NULL
2019-11-06 16:41:57 +08:00
思也
16ed6a71e7 避免elem的next不为空导致的插入一个链表而非结点 2019-11-02 15:14:51 +08:00
wangzheng0822
31b0908077
Merge pull request #373 from cauchyguo/master
fix bug in deleting method
2019-08-05 09:00:08 +08:00
cauchy
ede46d8758
Update binarysearchtree.c 2019-08-01 17:04:12 +08:00
cauchy
abd7e4565f
fix bug in deleting method
当被删除二叉排序树的节点有左右子树时,中序遍历得到右子树的最小节点minp,将其替代被删除节点。但是在free节点minp前应考虑该节点可能存在右子树,应使其父节点minpp左指针指向minp的右子树。
2019-08-01 10:30:19 +08:00
wenhua.zhang
b1b17c90ca FindElem 2019-07-10 19:01:45 +08:00
wangxp
5eb29946b5
Update single_list.c 2019-06-24 00:11:40 +08:00
andyzhu
e6a99b2d3d change 24_tree in c-cpp 2019-06-04 10:38:20 +08:00
Liu Zhang
2720b8f943 二叉搜索树和字典树 C版本 2019-05-10 12:11:01 +08:00
Wenkai Zhou
622fb3a80a fix bug
* error:get_postnode reverse the sequence of right and left
* error: while ((p->data != it) && (p != NULL))
2019-05-08 15:20:49 +00:00
wufengqian
60d597de18
删除函数delete中的搬移内存操作应该减多一个1
如果不减多一个1,会将数组内存中未使用的第一个内存地址中的内容也复制到
已经使用的内存地址中。
2019-03-24 11:51:00 +08:00
Devil0F
e3580e36ee
添加注释 2019-03-12 21:28:55 +08:00
wangzheng0822
b98df34ffd
Merge pull request #264 from Devil0F/patch-2
注释,方便个人查看
2019-03-11 09:58:07 +08:00
Devil0F
17c13f568d
注释,方便个人查看 2019-03-08 19:20:35 +08:00
Devil0F
170bf09421
链表
添加注释,方便个人理解
2019-03-08 14:56:35 +08:00
suidongliang
51d2693f4d
Add files via upload 2019-03-01 09:54:16 +08:00
Taoyu Su
adcbdda989
翻转单链表,头结点没有初始化
翻转单链表,头结点没有初始化,会导致后面无法遍历
2019-01-08 11:12:56 +08:00
wangzheng0822
9bb057aadc
Merge pull request #212 from ZuoerdingCoder/master
创建环形链表的一个问题
2019-01-07 10:43:44 +08:00
李超
ec602f96fd 修改创建带环链表的一个问题 2018-12-26 16:39:44 +08:00
Liam Huang
479c64c7b5
[18_hashtable] rename name of directory. 2018-12-18 17:05:07 +08:00
Liam Huang
25acf58af5
Merge branch 'master' into 18_hashtable 2018-12-18 17:04:04 +08:00
Wei Yang
fcf8c6b029 implement Graph in c 2018-12-03 14:59:22 +08:00
Wei Yang
2a095ae48f implement heap in c 2018-12-02 09:56:35 +08:00
Wei Yang
91fb787522 BST in c 2018-12-02 07:46:07 +08:00
wangzheng0822
10ce0fba79
Merge pull request #149 from jin13417/master
add for binary tree preoreder  inorder postoreder levleorder destroy
2018-11-16 13:34:30 +08:00
jinshaohui
09cd7bc11f add by jinshaohui for binary search tree(search,insert,delete) 2018-11-13 21:57:50 -05:00
Wei Yang
215291ef5f implement bst in c 2018-11-14 10:02:26 +08:00
jinshaohui
3aa1b38fb6 add for binary tree preoreder inorder postoreder levleorder destroy
tree  ; you can mtrace a.out 1,txt check memory
2018-11-12 18:26:14 -05:00
wangzheng0822
735b963878
Merge pull request #145 from MrPHQ/master
跳表的C++版本,翻译JAVA版本,有详细注释
2018-11-12 10:44:38 +08:00
wangzheng0822
06385923ff
Merge pull request #144 from jin13417/master
add by jinshaohui for list hash
2018-11-12 10:44:26 +08:00
Wei Yang
f41d01589c binary tree in array 2018-11-12 10:08:38 +08:00
puhuaqiang
671084417f 新增跳表C++版本.翻译来源JAVA版本 2018-11-09 11:07:10 +08:00
jinshaohui
2eb9a27086 111 2018-11-08 07:37:44 -05:00
jinshaohui
e53868b78d 实现hash表 双向链表 LRU功能 2018-11-07 23:49:16 -05:00
jinshaohui
5ac4ef47cd 解决代码存在内存泄漏问题。
使用mtrace工具
2018-11-07 20:58:55 -05:00
jinshaohui
35b9932a33 add by jinshaohui for list hash 2018-11-07 08:28:26 +08:00
Wei Yang
7119f47c9e hash table in c 2018-11-05 13:22:18 +08:00
wangzheng0822
7ef22264dc
Merge pull request #137 from RichardWeiYang/master
skiplist in c
2018-11-05 10:47:12 +08:00
wangzheng0822
5e21552151
Merge pull request #136 from jin13417/master
add for 二分查找
2018-11-05 10:47:00 +08:00
Wei Yang
2a3093b9f3 skiplist in c 2018-11-04 06:34:54 +08:00
Liam Huang
865f2d003b [cpp][18_hashtable] import an old toy for hash_map. 2018-11-03 10:39:03 +08:00
Liam Huang
9d5a939cd0 [cpp][17_skiplist] put std::fill's work into resize. 2018-11-02 22:43:10 +08:00
wangzheng0822
81c9d76341
Merge pull request #131 from Liam0205/17_skiplist_techreview
[cpp][17_skiplist] impl of an STL-like skiplist container.
2018-11-02 10:51:10 +08:00
wangzheng0822
7f04ac3125
Merge pull request #129 from Liam0205/17_skiplist
[cpp][17_skiplist] impl of skiplist class template in C++
2018-11-02 10:50:23 +08:00
wangzheng0822
081e35b48a
Merge pull request #117 from MrPHQ/master
修复 #30 号提出的问题.
2018-11-02 10:48:05 +08:00
wangzheng0822
4e5e37d2a4
Merge pull request #115 from jin13417/master
add by j00322883 for merge 、quick sort。
2018-11-02 10:46:40 +08:00
wangzheng0822
bdce324f77
Merge pull request #111 from Liam0205/16_bsearch
[cpp][16_bsearch] all varients' impl.
2018-11-02 10:46:02 +08:00
wangzheng0822
005fcd83c0
Merge pull request #110 from RichardWeiYang/master
binary search in c
2018-11-02 10:45:44 +08:00
Liam Huang
97db79df97 [cpp][17_skiplist] automatically grow within insertion. 2018-11-01 13:55:05 +08:00