Yudong Jin
5ddcb60825
Format python codes with black. ( #453 )
2 years ago
Yudong Jin
1c8b7ef559
refactor: Replace 结点 with 节点 ( #452 )
...
* Replace 结点 with 节点
Update the footnotes in the figures
* Update mindmap
* Reduce the size of the mindmap.png
2 years ago
krahets
3f4e32b2b0
Polish the chapter of graph, hashing, appendix
2 years ago
Justin Tse
56243ccc5b
Add JavaScript and TypeScript code of bucket sort, counting sort and radix sort (Chapter of Sorting) ( #451 )
...
* Add JavaScript and TypeScript code of bucket sort (Chapter of Sorting)
* Add JavaScript and TypeScript code of counting sort (Chapter of Sorting)
* Add JavaScript and TypeScript code of radix sort (Chapter of Sorting)
2 years ago
liuyuxin
42c89be785
feat: add dart code for chapter_tree ( #448 )
2 years ago
Yudong Jin
830ec69d39
Add bucket_sort.cpp and bucket_sort.py ( #446 )
2 years ago
liuyuxin
684f27cf5e
feat: add dart code for chapter_stack_and_queue and chapter_hashing ( #445 )
...
* feat: add dart code for chapter stack and queue
* feat: add dart code for chapter_hashing
* Update array_hash_map.dart
2 years ago
Reanon
cac38c0c93
feat(bucket_sort): add bucket_sort code in go/c ( #443 )
...
* feat(bucket_sort): add bucket_sort code in go/c
* feat(go): add bucket_sort
* feat(c): add bucket_sort in c
* Update bucket_sort_test.go
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
nuomi1
944c34982c
feat: add Swift codes for bucket_sort article ( #444 )
2 years ago
Yudong Jin
34a1bca627
Add the section of radix sort. ( #441 )
2 years ago
krahets
4830dffd26
Update the test case in bucket_sort.java
2 years ago
krahets
c338a6d8d8
Add the section of bucket sort
2 years ago
krahets
22898b6955
Simplify the contents of the sorting algorithms.
2 years ago
Guanngxu
9b0bdd929f
feat: add C merge sort ( #434 )
...
* feat: add C merge sort
* Update merge_sort.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
0a4a846e13
Fix python modules
2 years ago
Yudong Jin
8918ec9079
refactor: Follow the PEP 585 Typing standard ( #439 )
...
* Follow the PEP 585 Typing standard
* Update list.py
2 years ago
nuomi1
31be65cc55
refactor: use stride ( #437 )
2 years ago
nuomi1
5ba85ea69d
feat: add Swift codes for counting_sort article ( #438 )
2 years ago
Yudong Jin
65e47b0748
Add Python and C++ code for the counting sort. ( #436 )
2 years ago
krahets
a78365401e
Update counting_sort.go and radix_sort.go
2 years ago
Gonglja
b9e97d3823
Fix access error when printArray(arr, 0) ( #432 )
...
* fix(codes/cpp): Memory leak fix: the space was not freed when pop removed the element.
* fix(codes/cpp): Fix access error when printArray(arr, 0)
* Update PrintUtil.hpp
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Guanngxu
e539c44f63
feat: add C counting_sort ( #430 )
...
* feat: add C counting_sort
* Update CMakeLists.txt
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Gonglja
0659c54e77
Fix memory leaks ( #433 )
...
* fix(codes/cpp): Memory leak fix: the space was not freed when pop removed the element.
* fix(codes/cpp): Fix access error when printArray(arr, 0)
* fix(codes/cpp): Fix memory leaks: replace pointers with local variables, no need to manage memory
2 years ago
Reanon
c837882dbd
feat(counting_sort): support counting_sort in c/go ( #431 )
...
* feat(go/counting_sort): support counting_sort in go
* feat(test): support counting_sort_naive testcase
* feat(go/counting_sort): support counting sort
* feat(c/counting_sort): support counting_sort in c
2 years ago
Guanngxu
2356cc1b2e
add C binary_search and linear_search ( #426 )
...
* add C binary_search
* add C linear_search
* Update linear_search.c
* Update binary_search.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Gonglja
564ace6bc1
feat(codes/c): Add linkedlist_deque.c ( #422 )
...
* feat(codes/c): Add linkedlist_deque.c
* feat(codes/c): Update linkedlist_deque.c function comment.
* feat(codes/c): Update linkedlist_deque.c driver code.
2 years ago
Gonglja
3173d02538
fix(codes/cpp): Memory leak fix: the space was not freed when pop removed the element. ( #423 )
2 years ago
Yudong Jin
ceeb138487
Add the section of counting sort. ( #427 )
2 years ago
krahets
3cd724a6d8
Update list_node.h
2 years ago
krahets
28f3c98697
Fix avl_tree.cpp
2 years ago
krahets
0840bc2043
Fix the deconstructor of linkedlist_queue.cpp
2 years ago
krahets
518b9efabc
Update a comment in array_hash_map
2 years ago
krahets
d5afd93571
Update array_hash_map
2 years ago
krahets
d37d704b18
Update CMakeLists.txt for C++
2 years ago
sjinzh
c2be6ebfbe
🚀 feat: add rust codes for array_deque ( #418 )
...
* update zig codes style
* feat: add rust codes for array_deque
* Update array_deque.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Gonglja
567497a6b8
Add cpp codes cmake build method ( #419 )
...
* feat(codes/cpp): Add cmake build method
* feat(codes/cpp): Modify the cpp support version to c++17
* feat(codes/cpp): fix graph_adjacency_list.cpp cannot be compiled into an executable
* style(codes/cpp): Adjust the code to enhance compatibility.
* feat(codes/cpp): Change cpp version from 17 to 11.
2 years ago
krahets
b37a088f7d
Fix a comment in binary_tree_bfs.go
2 years ago
krahets
516cb17775
Replace poll with pop
2 years ago
Yudong Jin
28aacccf44
refactor: Replace 'poll' with 'pop' in Heap ( #416 )
2 years ago
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque ( #415 )
2 years ago
Gonglja
2d17ee8e92
feat(codes/c): Add array_deque.c ( #412 )
...
* feat(codes/c): Add array_deque.c
* Update array_deque.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Gonglja
f73b6a3654
feat(codes/c): Add linkedlist_queue.c ( #413 )
...
* feat(codes/c): Add linkedlist_queue.c
* feat(codes/c): Prevent null pointer access errors in linkedlist_queue.c
* Update linkedlist_queue.c
* Update linkedlist_queue.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Reanon
be0c965886
feat(go/deque): support go array deque ( #414 )
2 years ago
sjinzh
6924d15f63
🚀 feat: add rust codes for linkedlist_stack, linkedlist_queue and linkedlist_deque ( #410 )
...
* feat: add rust codes for space_complexity
* feat: add rust codes for linkedlist_stack
* update
* feat: add rust codes for linkedlist_queue
* feat: add rust codes for linkedlist_deque
* update
2 years ago
Yudong Jin
9151eaf533
Add typing annotations to Python codes. ( #411 )
2 years ago
sjinzh
2029d2b939
feat: add rust codes for space_complexity ( #409 )
2 years ago
krahets
82bbdd444d
Update the chapter of stack and queue.
2 years ago
sjinzh
050b922f8a
feat: add rust codes for linked_list and my_list ( #408 )
...
* feat: add rust codes for linked_list
* feat: add rust codes for my_list
* Update linked_list.rs
* Update print_util.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
bbef87ccfe
Update the applications of deque.
2 years ago
hpstory
7d55f82508
feature: Add csharp code array_deque and linkedlist_deque ( #405 )
...
* feature: Add csharp code array_deque and linkedlist_deque
* fix code style issue in comments
2 years ago