Commit Graph

190 Commits

Author SHA1 Message Date
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
Liam Huang
3c3e28e5b1 [cpp][17_skiplist] impl of find, insert, erase. 2018-11-01 13:04:33 +08:00
jinshaohui
289d2b374f 解决内存泄漏 2018-11-01 07:08:39 +08:00
jinshaohui
b72c72308f add by jinshaohui for skip list by c 2018-11-01 06:54:17 +08:00
jinshaohui
17c5b96478 Merge remote-tracking branch 'c-cpp/master'
111
2018-10-31 20:22:13 +08:00
jinshaohui
e713d63e34 add by jinshaohui for 二分查找变形的问题 2018-10-31 12:39:35 +08:00
Liam Huang
804d6f6bf6 [cpp][17_skiplist] impl of find and find_helper, and their unit test. 2018-10-31 12:10:00 +08:00
Liam Huang
f298cda3dc [cpp][17_skiplist] impl of constructors and destructor, and their related functions. 2018-10-31 11:27:28 +08:00
jinshaohui
84602b7fd2 二分查找求平方根 2018-10-31 11:06:01 +08:00
Liam Huang
de5fd9f60c [cpp][17_skiplist] impl of random level, and its unit test. 2018-10-31 10:36:24 +08:00