krahets
9731a46d67
Fix a definition.
1 year ago
krahets
f5dda8d99a
Polish the content
1 year ago
krahets
2626de8d0b
Polish the chapter
...
introduction, computational complexity.
1 year ago
krahets
c310edb672
Polish the chapter of array and linkedlist
1 year ago
Justin Tse
5d7e0a59b1
Add JavaScript and TypeScript code of top_k and update some code style ( #686 )
...
* Update JS and TS code style
* Add JavaScript and TypeScript code of top_k
* Update top_k.ts
* Apply suggestions from code review
Co-authored-by: Justin Tse <xiefahit@gmail.com>
* Apply suggestions from code review
Co-authored-by: Justin Tse <xiefahit@gmail.com>
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
William Yuan
ec82be7dc2
feat(tree): Add the array representation of the binary tree(js,ts) ( #681 )
...
* fix: fixed the bug of arrToTree function
* feat(tree): Add the array representation of the binary tree(js,ts)
* refactor: Make the arrToTree method match the method in java
1 year ago
William Yuan
e97eee0e18
feat(chapter_hashing): Add js and ts codes for chapter hashing ( #675 )
...
* refactor(chapter_hashing): Remove unnecessary chaining operator
* feat(chapter_hashing): Add js and ts codes for chapter 6
* refactor(chapter_hashing): Optimize the remove function logic
* refactor(chapter_hashing): Remove unnecessary chaining operator
* refactor(chapter_hashing): use const instead of let
1 year ago
krahets
932d14644d
Polish the content
...
Polish the chapter preface, introduction and complexity anlysis
1 year ago
krahets
08e4924054
Finetune
1 year ago
Yudong Jin
71074d88f6
Add the section of binary search insertion. ( #671 )
...
Refactor the section of binary search edge.
Finetune the figures of binary search.
1 year ago
William Yuan
70784a1ec3
feat(chapter_backtracking): Add js and ts codes for chapter 13.3 ( #667 )
...
* feat(chapter_dynamic_programming): Add js and ts codes for chapter 14.1
* style(chapter_dynamic_programming): format code
* refactor(chapter_dynamic_programming): remove main definition and add type
* feat(chapter_backtracking): Add js and ts codes for chapter 13.3
* feat(chapter_divide_and_conquer): Add js and ts codes for chapter 12.2
* feat(chapter_divide_and_conquer): Add js and ts codes for chapter 12.3
* feat(chapter_divide_and_conquer): Add js and ts codes for chapter 12.4
* style(chapter_divide_and_conquer): fix typo
* refactor: Use === instead of == in js and ts
1 year ago
William Yuan
35e9c8c209
feat(chapter_dynamic_programming): Add js and ts codes for chapter 14.1 ( #658 )
...
* feat(chapter_dynamic_programming): Add js and ts codes for chapter 14.1
* style(chapter_dynamic_programming): format code
* refactor(chapter_dynamic_programming): remove main definition and add type
1 year ago
krahets
b067016bfa
Update preorder_traversal_iii.
1 year ago
krahets
bba62bbe75
Fix the code of preorder_traversal_iii_compact
1 year ago
krahets
c54536d1a1
Modify the problem of preorder_traversal_iii
1 year ago
krahets
69920a0599
Fix binary search.
...
Finetune a figure in intro_to_dp.
1 year ago
krahets
9fc1a0b2b3
Update n_queens code.
1 year ago
krahets
d62156fb58
Fix two_sum.js and .ts
1 year ago
Yudong Jin
9563965a20
Add the codes of hashmap ( #553 )
...
of chaining and open addressing
1 year ago
krahets
698c2e7fe5
Fix some codes and a figure.
1 year ago
Justin Tse
2532f06c7f
Add JavaScript and TypeScript code of heap sort, selection sort and binary search edge and Fix the indentation of TS code ( #545 )
...
* Fix the indentation of TS code
* Add JavaScript and TypeScript code of heap sort, selection sort and binary search edge
* Fix the style of JS and TS code
1 year ago
krahets
6377e3316a
Fix a comment in my_list.xx
1 year ago
krahets
b39e79be85
Fix remove() in binary search tree.
2 years ago
krahets
11c835d79c
Update the section of heap.
2 years ago
krahets
eb8df49993
Update bubble sort and insertion sort.
2 years ago
krahets
89a9741e9e
Fix some comments.
2 years ago
krahets
f6d290d903
Update the comments of bubble sort
...
and insertion sort
2 years ago
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
krahets
c3e7455285
Refactor the section of bianry search.
2 years ago
krahets
399e5df39a
Polish some cotents.
2 years ago
krahets
817b4598d5
Fix a comment in binary_search_tree code
2 years ago
krahets
649d8c4c86
Fix the indentation of JS and TS code.
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
krahets
de579aa3f4
Fix the file headers.
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
krahets
f7ae9c8a02
Fix the return type of binary search tree and avl tree
2 years ago
krahets
0bec52d7cc
Polish the chapter of heap, introduction, preface.
...
Replace "其它" with "其他"
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
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
krahets
518b9efabc
Update a comment in array_hash_map
2 years ago
krahets
d5afd93571
Update array_hash_map
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
krahets
ca261a8f46
Update the chapter preface.
2 years ago
zhuoqinyue
8c65345b76
feat: add array_deque for JS and TS ( #397 )
...
* feat: add array_deque for JS and TS
* feat: update the information
* Update array_deque.ts
* Update array_deque.js
* use private property
* Update array_deque.js
---------
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago