5385057993
Replace "结点" with "节点".
2023-10-27 23:24:13 +08:00
7605cab160
feature(swift): Reimplement merge_sort and top_k ( #898 )
...
* feat: Add swift-collections
* fix: use heap
* refactor: merge
* fix: import HeapModule
2023-10-27 22:59:54 +08:00
ba74d4bba7
Reduce the image files size for faster loading. ( #897 )
2023-10-27 20:13:08 +08:00
1ab83bd3ef
refactor(dart): Re-implement merge sort function ( #896 )
2023-10-27 16:00:26 +08:00
bd8cda325e
A few improvements to the C code.
2023-10-27 01:13:36 +08:00
0e10274bb4
Update arrayToTree() and treeToArray() for C.
2023-10-27 01:04:17 +08:00
5b1a219b8b
Fine-tune code and texts.
2023-10-27 01:01:21 +08:00
3628b40f44
refactor: re-implement the rust codes of merge sort ( #891 )
2023-10-26 22:24:02 +08:00
08311f954a
CI(dart): Cancel beta and dev Dart SDK ( #893 )
2023-10-26 22:23:26 +08:00
356db47cd4
Update array.md ( #890 )
...
* Update array.md
* Update array.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-26 22:22:19 +08:00
e441ee4e35
Re-implement merge sort function. ( #888 )
2023-10-26 02:56:33 +08:00
7822bf9cd4
feat: add top_k.c and refactor top_k.js ( #889 )
...
* Add top_k.c based on my_heap.c
* Improve the implementation of top_k.js
* Add a comment to top_k
2023-10-26 02:54:19 +08:00
9f4076d1c1
Update to checkout@v4
2023-10-26 00:09:25 +08:00
a8b2350705
feat(dart): Add build check for Dart ( #886 )
...
* feat(dart): Add build check for Dart
* feat(dart): Add dart analyze to check
* fix(dart): remove dart analyze
* feat(dart): Ignore unused variable and add dart analyze
2023-10-25 23:15:53 +08:00
d26e811e10
Several bug fixes and improvements. ( #887 )
...
* fix the bugs of C code.
* Add a header figure.
* Improve the definition of tree node height.
2023-10-25 22:59:25 +08:00
436b6fa9a6
Add C++ iterator example for C++ ( #837 )
...
* 增加c++迭代器访问示例
* Update hash_map.md
* Update hash_map.cpp
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-24 23:59:10 +08:00
2035aa0cf1
feat: iteration & recursion in Zig ( #804 )
...
* iteration & recursion in Zig
* missing part in time_complexity.md (zig)
* build.zig sync
* Update recursion.zig
* Update iteration.zig
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-24 23:49:13 +08:00
19023148ba
feat: Update the implementation of hash_map_open_addressing.js and .ts ( #881 )
...
* add permutations_ii.c and re-implement permutations_i.c
* Update the implementation of hash_map_open_addressing.js and .ts
* Update hash_map_open_addressing.js
* Update hash_map_open_addressing.js
2023-10-24 23:46:34 +08:00
dbc76ec806
Add workflow_dispatch to Swift, Python and C# CI Check ( #882 )
...
* Update swift.yml
* Update dotnet.yml
* Update python.yml
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-24 23:08:15 +08:00
f80b25bd17
Replace Java with Python in pivot division figures
2023-10-24 22:33:38 +08:00
fb3ce050c1
feat(csharp): add .net building and testing workflow, solution file ( #879 )
2023-10-24 17:13:29 +08:00
17252b53a9
Format code and docs.
2023-10-24 16:19:29 +08:00
d639d946f0
fix: Removed unnecessary JS & TS codes in linked_list.md ( #852 )
...
* fix: Removed unnecessary JS & TS codes in linked_list.md
* Update linked_list.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-24 15:34:55 +08:00
88a1e4aaac
refactor(JS, TS): Improve code readability in edit_distance ( #860 )
...
* fix(JS、TS): chapter_sorting QuickSortMedian and QuickSortTailCall example
* refactor(JS、TS): Improve code readability in edit_distance
* Updated code
2023-10-24 15:32:20 +08:00
d27890d98d
Fix automating build workflow for Python
2023-10-23 16:06:33 +08:00
b7c110e5ec
Add build check with py_compile
2023-10-23 06:02:34 +08:00
1b9978998a
Create python.yml ( #877 )
2023-10-23 05:59:00 +08:00
9562287a21
Update Q&A of data_structure, array_and_linkedlist ( #861 )
...
* "Add Q&A sections to array/linked_list and tree chapters"
Added question and answers related to the use of std::list in C++ and space complexity in full binary tree traversal to their respective chapters in array_and_linked_list and tree documentation.
* Update summary.md
* Update summary.md
* Update summary.md
* "Expand details on HashTable, arrays, and linked lists in docs"
Extended the section explaining how HashTables use both linear and nonlinear data structures. Added Q&A sections addressing common questions on character type size, the static and dynamic nature of array-based data structures, and distinguishing array and linked list from logic and physical perspective. These changes provide clearer understanding for readers.
* "Add FAQs to array and linked list docs chapter"
Added several Frequently Asked Questions to improve clarity in the arrays and linked list documentation chapter. These questions mainly address the behavior and structure of array initializations, circular array queues, and single-link list node deletion. Providing answers to these can enhance understanding and prevent misconceptions among readers.
* Update summary.md
* Update summary.md
* Update summary.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-23 04:54:25 +08:00
e81c9a85b5
Add CI check for Swift ( #875 )
...
* Create swift.yml
* Update swift.yml
* Update swift.yml
* Update swift.yml
2023-10-23 04:28:05 +08:00
fa9607b749
Update permutations_problem.md ( #864 )
...
* Update permutations_problem.md
* Update permutations_problem.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-23 04:19:29 +08:00
0c470d19c8
upate build.zig ( #874 )
2023-10-23 03:20:16 +08:00
fc70b1eb2c
Fix the docs of binary_search_tree and
...
graph_operations.
2023-10-23 03:09:41 +08:00
433997c38d
Fix several figures.
2023-10-19 16:22:10 +08:00
5aacf2dfe0
Improve Python code for importing modules.
2023-10-19 16:21:51 +08:00
1e49574332
Simplify struct declarations of C.
...
Use PascalCase for all structs in C.
SImplify n_queens.c
Format C code for chapter of graph.
2023-10-18 02:16:26 +08:00
070d23ee6e
fix: hash_collision.md squared detection description ( #867 )
2023-10-17 10:49:06 -05:00
5392afd44b
fix several bugs
2023-10-17 23:45:31 +08:00
51405c0669
add permutations_ii.c and re-implement permutations_i.c ( #868 )
2023-10-17 10:20:10 -05:00
37872726b0
feat: build_tree.c translation ( #847 )
...
* feat: build_tree.c translation
* Update CMakeLists.txt
* chore: find with map
* change inordermap
* Update build_tree.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-10-17 08:47:16 -05:00
ea7275ab6a
add forLoopRecur in recursion.c ( #866 )
2023-10-17 07:28:17 -05:00
faa44fecd2
Squash the language code blocks and fix list.md ( #865 )
2023-10-16 12:06:00 -05:00
346c8451de
Fix code naming style.
2023-10-15 21:18:09 +08:00
ada37fd1f8
Fix Python code.
2023-10-14 22:15:02 +08:00
2976d9ff56
Fix Python code.
2023-10-14 21:54:47 +08:00
a8c624fa5a
Fix the code in min_path_sum
2023-10-14 03:25:11 +08:00
3df5c36370
refactor: Improve the hash_map_chaining.c implementation. ( #858 )
...
* Improve the hash_map_chaining.c implementation.
* Update hash_map_chaining.c
2023-10-13 02:04:45 -05:00
84e2799f1b
Fix hash_map_chaining.c and
...
hash_map_open_addressing.c
2023-10-13 14:32:49 +08:00
fe01f77ff8
Create hash_map_open_addressing.c ( #838 )
...
* Create hash_map_open_addressing.c
哈希冲突-C语言
* Update hash_map_open_addressing.c
* Update hash_map_open_addressing.c
* Update hash_map_open_addressing.c
2023-10-13 01:15:23 -05:00
61eca92055
fix get() in hash_map_chaining.c ( #845 )
...
Fix get function.
2023-10-13 01:09:06 -05:00
da5ef293d9
fix a typo
2023-10-11 17:39:56 +08:00