Commit Graph

196 Commits

Author SHA1 Message Date
jinshaohui
a792e91a77 add by jinshaohui for merge sentry 2018-10-20 00:26:52 +08:00
jinshaohui
4fe2286590 add by jinshaohui for merge add quick sort,
add find k big element value.
2018-10-19 22:03:36 +08:00
jinshaohui
f5895071c6 add by j00322883 for sort 2018-10-19 14:12:51 +08:00
jinshaohui
9ff1092c7f add by j00322883 for sort 2018-10-19 14:11:05 +08:00
Liam Huang
a72dbfc997 [cpp][12_sorts] remove inplace_merge function, apply std::inplace_merge. 2018-10-17 18:38:24 +08:00
Liam Huang
eca8cb407f [cpp][12_sorts] quick_sort, done. 2018-10-17 17:36:44 +08:00
Liam Huang
1dc77a853a [cpp][12_sorts] inplace_merge_sort, impl inplace_merge manually. 2018-10-17 12:10:31 +08:00
Liam Huang
b321b155c9 [cpp][12_sorts] inplace_merge_sort, done. 2018-10-17 12:03:33 +08:00
Liam Huang
6a2f303d93 [cpp][12_sorts] merge_sort, done. 2018-10-17 11:55:07 +08:00
Liam Huang
8257fac374 [cpp][12_sorts] directory init. 2018-10-17 10:55:25 +08:00
Liam Huang
fcec521df9 [cpp][11_sorts] shell_sort, done. 2018-10-17 10:52:21 +08:00
Liam Huang
99dc93b206 [cpp][11_sorts] bubble_down_sort, only ForwardIt is required. 2018-10-17 10:32:23 +08:00
Liam Huang
1fe5a08dc9 [cpp][11_sorts] bubble_down_sort, done. 2018-10-17 10:30:07 +08:00
Liam Huang
2dfdfe8a89 [cpp][11_sorts] selection_sort, updated [prevent useless swap]. 2018-10-17 09:37:30 +08:00
Liam Huang
1dfdd7e0fa [cpp][11_sorts] selection_sort, done. 2018-10-17 09:33:04 +08:00
Liam Huang
54b499f2d1 [cpp][11_sorts] insertion_sort, done. 2018-10-17 09:28:01 +08:00
Liam Huang
4ba22da688 [cpp][11_sorts] bubble_sort, done. 2018-10-17 09:17:22 +08:00
Liam Huang
e4ca4f99c8 [cpp][11_sorts] bubble_sort, init. 2018-10-16 22:19:24 +08:00
Liam Huang
1251700bc5 [cpp][11_sorts] init. 2018-10-16 22:19:04 +08:00
Wei Yang
a6078038ce Sorts in c
bubble/insertion/selection sort

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
2018-10-16 14:33:07 +08:00
wangzheng0822
e8ac0d9973
Merge pull request #61 from jin13417/master
jinshaohui commit array stack.
2018-10-15 10:11:41 +08:00
jinshaohui
8d5ebed28b add by jinshaohui for link list queue 2018-10-13 09:47:56 +08:00
jinshaohui
3e0648be96 add by jinshaohui for array cycle queue C 2018-10-13 06:01:48 +08:00
Zix
d69e3d1942
Create StackBasedOnLinkedList.cpp 2018-10-12 19:52:37 +08:00
Zix
84802a4b9f
Create StackBasedOnLinkedList.h 2018-10-12 19:52:14 +08:00
Zix
0d89d2bdab
Create StackBasedOnArray.cpp 2018-10-12 19:50:55 +08:00
Zix
1e0e0e6967
Create StackBasedOnArray.h 2018-10-12 19:50:35 +08:00
wangzheng0822
3d812aaf6a
Merge pull request #54 from Liam0205/10_recursive
[C++][10_recursive] 课程中上台阶代码实现
2018-10-12 17:52:11 +08:00
wangzheng0822
43b267f76f
Merge pull request #48 from bkcarlos/master
数组通用类
2018-10-12 17:50:05 +08:00
Liam Huang
5a374e03f5 [10_recursive] one_two_step, nonrecursive version, done. 2018-10-12 17:49:55 +08:00
wangzheng0822
0801b5b930
Merge pull request #45 from Liam0205/09_queue_concurrency
[C++][09_queue] 并发相关队列实现
2018-10-12 17:49:12 +08:00
wangzheng0822
5c6508032b
Merge pull request #43 from jinshaohui/master
add by j00322883 for dlist lru
2018-10-12 17:48:04 +08:00
jinshaohui
4ebd905bac add by jinshaohui for linklist stack 2018-10-12 13:45:47 +08:00
jinshaohui
56c5104857 delete file 2018-10-12 12:00:01 +08:00
jinshaohui
ebf7280dcc add by jinshaohui for array stack 2018-10-12 11:56:52 +08:00
Liam Huang
07297f8fb4 [10_recursive] one_two_step, applying iterator. 2018-10-12 09:00:30 +08:00
Liam Huang
d458314184 [10_recursive] one_two_step, done. 2018-10-12 08:56:57 +08:00
Liam Huang
038359ef26 [09_queue] concurrency, lock_free_queue, updated. 2018-10-11 18:06:05 +08:00
Liam Huang
ee3253afdd [09_queue] concurrency, lock_free_queue, done. 2018-10-11 18:01:33 +08:00
Liam Huang
e3cfa2cad9 [09_queue] concurrency, concurrency_queue, done. 2018-10-11 17:23:51 +08:00
carlos
751da8998f 数组通用类
数组通用,支持自定义数据类型和基础数据类型
2018-10-11 14:25:42 +08:00
Liam Huang
2aa9de5ebf [09_queue] concurrency, concurrency_queue, init. 2018-10-11 12:27:38 +08:00
Liam Huang
82b0b47cbd [09_queue] concurrency, block_queue, wait_for, done. 2018-10-11 12:15:35 +08:00
Liam Huang
1289a1cacf [09_queue] concurrency, block_queue, wait, done. 2018-10-11 12:09:03 +08:00
Liam Huang
a9fee74a39 [09_queue] linked_queue_test, passed. 2018-10-10 23:46:37 +08:00
Liam Huang
81a23a1f93 [09_queue] linked_queue, done. 2018-10-10 23:46:15 +08:00
Liam Huang
4c66d18b75 [09_queue] dynamic_array_queue_test, passed. 2018-10-10 23:20:51 +08:00
Liam Huang
f6295f8119 [09_queue] dynamic_array_queue, bug fix (enqueue). 2018-10-10 23:20:38 +08:00
Liam Huang
f2cc323146 [09_queue] dynamic_array_queue, done. 2018-10-10 23:14:56 +08:00
Liam Huang
a2714da481 [09_queue] circular_queue_test, passed. 2018-10-10 22:58:01 +08:00
Liam Huang
8367555e02 [09_queue] circular_queue, fix bug [ x / 0.0 ] 2018-10-10 22:53:27 +08:00
Liam Huang
2b79c34c72 [09_queue] circular_queue, done. 2018-10-10 22:49:23 +08:00
Liam Huang
1ab1e93edc [09_queue] const in constructor's parameter. 2018-10-10 22:16:57 +08:00
Liam Huang
0983790871 [09_queue] array_queue_test, passed. 2018-10-10 22:05:11 +08:00
Liam Huang
286f9250a6 [09_queue] fix typo [other -> rhs]. 2018-10-10 21:54:02 +08:00
Liam Huang
b2cb8db35a [09_queue] add traverse function. 2018-10-10 21:53:38 +08:00
Liam Huang
af91fa84a8 [09_queue] void return. 2018-10-10 21:50:06 +08:00
Liam Huang
29c9ffc9c5 [09_queue] default constructor should be deleted. 2018-10-10 21:45:23 +08:00
Liam Huang
8e7d064f8f [09_queue] enqueue and dequeue. 2018-10-10 21:44:51 +08:00
Liam Huang
84f5a63a08 [09_queue] consturctors [move], [copy, move] assignment. 2018-10-10 21:36:52 +08:00
Liam Huang
aed2b6d85f [09_queue] consturctors [default, normal, copy], destructor. 2018-10-10 20:45:18 +08:00
Liam Huang
8b15f0b80c [09_queue] .gitkeep. 2018-10-10 20:27:11 +08:00
wangzheng0822
b1244bb9de
Merge pull request #36 from RichardWeiYang/master
implement ring queue in c
2018-10-10 16:28:11 +08:00
wangzheng0822
28dc618c1d
Merge pull request #35 from Triple-Z/master
palindromeList: another implementation for checking a palindrome list
2018-10-10 16:27:55 +08:00
wangzheng0822
54138bb4cb
Merge pull request #21 from Liam0205/08_stack
[C++ 实现] 08_stack
2018-10-10 16:26:04 +08:00
wangzheng0822
21fdf80732
Merge pull request #20 from Liam0205/07_linkedlist
[C++ 实现] 07_linkedlist
2018-10-10 16:24:04 +08:00
Wei Yang
6dcb6d6c6d implement ring queue in c 2018-10-10 15:47:24 +08:00
TripleZ
387f9278b1
palindromeList: another implementation
O(n) time complexity & O(1) space complexity
2018-10-10 13:32:57 +08:00
Liam Huang
cd6c548fbb [07_linkedlist] update comment for guards. 2018-10-08 22:07:22 +08:00
wangzheng0822
c834a02523
Merge pull request #16 from mvpcaozixiang/master
LRUBasedLinkedList.cpp
2018-10-08 16:30:01 +08:00
Liam Huang
7a3f952e6d [07_linkedlist] remove test files. 2018-10-08 15:47:41 +08:00
Liam Huang
4ce8d0499a Merge branch 'master' into 08_stack 2018-10-08 15:43:41 +08:00
Liam Huang
6306794af1 Merge branch 'master' into 07_linkedlist 2018-10-08 15:42:41 +08:00
Liam Huang
a0b95e8799 [08_stack] impl stack based on linked list, in Cxx. 2018-10-08 15:34:58 +08:00
Liam Huang
f4911a7612 [07_linkedlist] updated comments. 2018-10-08 15:28:08 +08:00
Liam Huang
5d841d46af [07_linkedlist] remove iostream in hpp. 2018-10-08 15:27:12 +08:00
Liam Huang
da5e01e864 [07_linkedlist] prittification of linked list operations in Cxx. 2018-10-08 14:51:53 +08:00
Liam Huang
9c304af039 [07_linkedlist] impl of linked list operations in Cxx. 2018-10-08 14:48:59 +08:00
Liam Huang
0f4ddb2410 [07_linkedlist] impl of linked list node in Cxx. 2018-10-08 14:37:50 +08:00
Liam Huang
435174ee7e [git] update ignore scheme. 2018-10-08 14:37:16 +08:00
Zix
2d6849bc35
Rename singleLinkedList.cpp to LRUBasedLinkedList.cpp 2018-10-08 11:16:15 +08:00
wangzheng0822
d4e83b4bcc
Merge pull request #17 from SuperChenSSS/superchen-FixBugs
Fix bugs: single_list.c has some grammer errors.
2018-10-08 11:08:20 +08:00
wangzheng0822
1d124ff1e0
Merge pull request #15 from MrPHQ/master
新增 cpp 单链表的实现
2018-10-08 11:06:37 +08:00
Smallfly
5712d7f628 add base check 2018-10-08 08:13:39 +08:00
SuperChenSSS
5ce1e246df Fix bugs: single_list.c has some grammer errors.Fixed. 2018-10-08 00:20:58 +08:00
jinshaohui
b8ab39aca9 add by j00322883 for dlist lru 2018-10-07 12:00:34 -04:00
Zix
9d6d8d22fb
Create singleLinkedList.cpp 2018-10-07 21:42:44 +08:00
HuaQiang
a11f3c1014
新增 cpp 单链表的实现
新增 cpp 单链表的实现.
2018-10-07 17:33:05 +08:00
Smallfly
ce2d18d320 Merge branch 'master' of https://github.com/iostalks/algo 2018-10-07 16:36:48 +08:00
Smallfly
11d02a3ed0 Add C implement for 07_linkedlist 2018-10-07 16:31:47 +08:00
wangzheng0822
576940cf11
Merge pull request #4 from MrzhangF1ghter/MrzhangF1ghter
回文算法 C++实现
2018-10-06 21:43:38 +08:00
Wei Yang
2c37d35ede implementation of single list in c 2018-10-05 21:12:53 +08:00
Wei Yang
6fcd13d382 Implement array in c 2018-10-05 07:53:18 +08:00
MrzhangF1ghter
69b51580e2 回文算法 C++实现 2018-10-04 18:11:57 +08:00
wangzheng
71079c9408 init 2018-09-24 13:56:05 +08:00
wangzheng
d99379fc71 init 2018-09-24 13:50:20 +08:00