krahets
d95c628eef
Fix the test case of binary search.
2 years ago
krahets
d3cc149c5a
Merge the chapter of binary tree and searching.
2 years ago
Yudong Jin
b5eb9ca271
feat: Add the section of binary search edge. ( #508 )
...
* Add the section of binary search edge.
* Delete binary_search_rotation.py
2 years ago
krahets
c3e7455285
Refactor the section of bianry search.
2 years ago
Jefferson Huang
921d87c238
feat: add chapter_binary_search by dart ( #506 )
...
* feat: add chapter_sorting by dart
* feat: add chapter_searching by dart
* feat: add chapter_binary_search by dart
---------
Co-authored-by: huangjianqing <huangjianqing@52tt.com>
2 years ago
krahets
399e5df39a
Polish some cotents.
2 years ago
Jefferson Huang
335bc29af2
feat: add chapter_sorting and chapter_searching by dart ( #497 )
...
* feat: add chapter_sorting by dart
* feat: add chapter_searching by dart
---------
Co-authored-by: huangjianqing <huangjianqing@52tt.com>
2 years ago
liuyuxin
ec4202031e
feat: add dart code for chapter_graph ( #498 )
2 years ago
krahets
817b4598d5
Fix a comment in binary_search_tree code
2 years ago
krahets
b093162208
Fix my_list.py
2 years ago
krahets
f35020b335
Fix bucket_sort.
2 years ago
ZeYanLin
bae8298c8a
fix:range issue ( #496 )
2 years ago
Reanon
a6b3f72826
feat(go/backtracking): add go code ( #488 )
...
* feat(go/backtracking): add go code
* feat(backtracking): add n_queens in go
* feat(backtracking): add /preorder_traversal_i_compact in go
* feat(backtracking): add /preorder_traversal_ii_compact in go
* feat(backtracking): add /preorder_traversal_ii_template in go
* feat(backtracking): add preorder_traversal_iii_compact in go
* feat(backtracking): add preorder_traversal_test in go
* feat(backtracking): add permutations_i in go
* feat(backtracking): add permutations_ii in go
* feat(backtracking): add permutation_test in go
* feat(backtracking): fix bug in go
* Update permutations_i.go
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
nuomi1
170713c642
feat: add Swift codes for n_queens_problem article ( #495 )
...
* refactor: rename PreorderTraversalIIITemplate
* feat: add Swift codes for n_queens_problem article
2 years ago
krahets
649d8c4c86
Fix the indentation of JS and TS code.
2 years ago
liuyuxin
541f384e7c
Fix function call error and null safety ( #491 )
2 years ago
Justin Tse
b52a98f178
Add JavaScript and TypeScript code of permutations and n_queens (Chapter of Backtracking) ( #494 )
...
* Add JavaScript and TypeScript code of permutations and n_queens (Chapter of Backtracking)
* Update n_queens.js
* Update permutations_i.js
* Update permutations_ii.js
* Update n_queens.ts
* Update permutations_i.ts
* Update permutations_ii.ts
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Justin Tse
01345c23ca
Add JavaScript and TypeScript code of preorder traversal (Chapter of Backtracking) ( #490 )
...
* Add JavaScript and TypeScript code of preorder traversal (Chapter of Backtracking)
* Update preorder_traversal_iii_compact.ts
2 years ago
krahets
fe69f7240d
Add figures to replace_linear_by_hashing.md
2 years ago
gonglja
53ca2144e2
Fix the problem in binary_tree_bfs.c and the problem that the memory is not released. ( #487 )
...
* 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
* fix(codes/c): Fix some errors of cmake build
* feat(codes/c): Add hashing_search.c
* styles(codes/c): Modify function description
* styles(codes/c): Modify binary_search.c code style
* fix(codes/c): Fix the problem in binary_tree_bfs.c and the problem that the memory is not released.
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
hpstory
40319e7f30
refactor: use global using to reduce usings in each file ( #486 )
2 years ago
krahets
db6caf0d43
Update n queens.
2 years ago
hpstory
7b1de228a0
feat(csharp/backtracking): add csharp code in n queens ( #485 )
...
* feat(csharp/backtracking): add csharp code in n queens
* fix format
* Update n_queens.cs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
nuomi1
9ec560d6cd
feat: add Swift codes for permutations_problem article ( #482 )
2 years ago
Yudong Jin
67d647ab59
feat: Add the section of n queens problem ( #483 )
...
* Add the section of n queens problem
* Update n_queens.py
* Update n_queens.java
* Update n_queens.cpp
* Update n_queens.java
2 years ago
krahets
78c84dfec6
Fix counting_sort.c
2 years ago
nuomi1
561ef20462
feat: add Swift codes for backtracking_algorithm article ( #480 )
...
* fix: compile error
* fix: package define
* feat: add Swift codes for backtracking_algorithm article
2 years ago
krahets
bc77a81330
Update the codes of backtracking.
2 years ago
krahets
9c070a028f
Update the code of permutations I and II
2 years ago
krahets
3f430fb85e
Update the code of permutations i and ii
2 years ago
hpstory
918380b56a
feat(csharp/backtracking): add csharp code in permutations ( #478 )
...
* feat(csharp/backtracking): add csharp code in permutations
* Update permutations_i.cs
* Update permutations_ii.cs
* Update permutations_ii.cs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
40e6d2b415
Rename the common modules.
2 years ago
krahets
145975b335
Rename the common modules in Java, C++ and C.
2 years ago
Yudong Jin
c6eecfd0dc
feat: Add the section of permutations problem. ( #476 )
...
* Add the section of permutations problem.
* Update permutations_problem.md
2 years ago
Guanngxu
95ed93dc4b
feat: add C array hash map ( #424 )
...
* feat: add C hash map
* fix: hash map put bug
* fix: C array hash map
* fix: Incorrect indentation
* refactory array hash map
* remove header
* refactory print
* 修改注释
* replace all the Tab with 4 spaces
* 向 cpp 靠拢
* 删除错误注释
* delete <stdlib.h>
* delete array_hash_map.h
* Update array_hash_map.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
de579aa3f4
Fix the file headers.
2 years ago
krahets
3590262c7e
Modify the exception handling in Java and Python.
2 years ago
krahets
73dcb4cea9
Reformat the C# codes.
...
Disable creating new line before open brace.
2 years ago
gonglja
ac6eece4f3
Modify code and comments ( #473 )
...
* 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
* fix(codes/c): Fix some errors of cmake build
* feat(codes/c): Add hashing_search.c
* styles(codes/c): Modify function description
* styles(codes/c): Modify binary_search.c code style
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
bad759b4f8
Rename the naming of the coding files
...
in backtracking algorithm.
Add the typedef to docs.
2 years ago
hpstory
9eeefff447
refactor: add/refactor method in include, simplified print code ( #471 )
2 years ago
xBLACKICEx
9c2e5e2831
✨ feat(rust/tree): add binary_tree_bfs, binary_tree_dfs, ( #450 )
...
* ✨ feat(rust/tree): add binary_tree_dfs
* ✨ feat(rust/tree): add binary_tree_bfs
* 🐞 fix(rust/tree): can't list to any kind of tree
2 years ago
krahets
661603d467
Add the hashtable based on uthash.h to docs
2 years ago
Yudong Jin
dbc4906582
Publish the C codes to the docs. ( #469 )
2 years ago
krahets
6723cdbc7e
Represent null with INT_MAX in C, C++.
2 years ago
krahets
af0f92c18d
Fine tune the C codes.
2 years ago
krahets
c4ea4e39f3
Fomrat the JS and TS codes with prettier.
2 years ago
krahets
9a98ff8a5e
Format the C code in Clang-Format Style: Microsoft
2 years ago
Yudong Jin
881d573790
Refactor the articles related to searching algorithm. Add the chapter of binary search. Add the section of searching algorithm revisited. ( #464 )
2 years ago
gonglja
28fdd26f2f
Fix some errors of cmake build and add hashing_search.c ( #458 )
...
* 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
* fix(codes/c): Fix some errors of cmake build
* feat(codes/c): Add hashing_search.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago