selear
5b6fb34a82
fix: Use .equals() to compare two strings in Java ( #961 )
1 year ago
krahets
a01363234c
Add auto-build-and-check workflow for Java.
1 year ago
Yudong Jin
fcbaf101a4
Several bug fixes and improvements ( #945 )
...
* Update Dockerfile for code debugging.
* Format Python code using Black.
* Improve dark theme by defining html classes for the figures, animations and cover images.
* Fix several glossary translation.
* Update a code comment.
* Fix climbing_stairs_backtrack: the pruning should not require the sorted choices list.
* Update the code of array and list traversal.
* Fix a rendering issue of README.md
* Update code of list traversal.
* Fix array_definition.png
* Update README.md
* Fix max_capacity_moving_short_board.png
* Fix array.dart
* Fix array.dart
* Fix array.dart
* Fix array.dart
1 year ago
krahets
5f3ad1ed3d
A few bug fixes.
1 year ago
krahets
355cc3a6b1
Bug fixes to C code.
1 year ago
Yudong Jin
e441ee4e35
Re-implement merge sort function. ( #888 )
1 year ago
Yudong Jin
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
1 year ago
krahets
5392afd44b
fix several bugs
1 year ago
krahets
a8c624fa5a
Fix the code in min_path_sum
1 year ago
krahets
fb552987f5
Update variable names in list and my_list
1 year ago
hpstory
e03022d5fb
fix: Polishing code format on linearLogRecur, convert String type to string ( #841 )
1 year ago
krahets
ff8e7ceec5
Several bug fixes.
1 year ago
lyl625760
45e20e57a1
fix: Update hash_map_open_addressing.java ( #727 )
...
* FixBug:Update hash_map_open_addressing.java
1. put keyA, hashFunc 在位置 5
2 put key B, hashFunc 在位置 5. 和 A冲突,插入位置6
3. remove keyA,位置5removed
4. put keyB, hashFunc 在位置 5. 没有冲突,插入位置5
5. remove keyB, 位置5removed
6. get keyB, 此时会出bug,会访问到位置6. 实际上应为keyB 已经删除了
* Update hash_map_open_addressing.java
* Update hash_map_open_addressing.java
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
krahets
cb9c14f5ff
fix build_tree, binary_search_tree.cs
...
fix two figures
1 year ago
krahets
d190dbf3c1
Several enhancements and fixes
1 year ago
krahets
5f814d6538
Add comparison between iteration and recursion.
...
Fix the figure of tail recursion.
Fix two links.
1 year ago
krahets
f71b2a40da
fix preorder_traversal_iii_compact code
1 year ago
krahets
dd72335235
Format C, C++, C#, Go, Java, Python, Rust code.
1 year ago
krahets
a47a974a6a
fix climbing_stairs_constraint_dp code
1 year ago
krahets
628d8a516b
fix binary_search_tree code
1 year ago
gaofer
f7ab4797bf
feat: add dynamic programming code for JS and TS ( #692 )
...
* fix: Correcting typos
* Add JavaScript and TypeScript code of dynamic programming.
* fix: Code Style
* Change ==/!= to ===/!==
* Create const by default, change to let if necessary.
* style fix: Delete unnecessary defined type
1 year ago
krahets
9731a46d67
Fix a definition.
1 year ago
krahets
ae304bd605
Update iteration code.
1 year ago
Yudong Jin
3e64f68ae9
Add the section of iteration and recursion. ( #693 )
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
krahets
6ef4dc6444
Fix the content
1 year ago
krahets
932d14644d
Polish the content
...
Polish the chapter preface, introduction and complexity anlysis
1 year ago
hpstory
c14ca74b8b
feat(csharp): add binary search csharp codes ( #676 )
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
krahets
6da6d24193
Fix the code of hash map chaining.
1 year ago
krahets
b067016bfa
Update preorder_traversal_iii.
1 year ago
Night Cruising
41db3701ab
Update max_product_cutting.java ( #647 )
1 year ago
krahets
bba62bbe75
Fix the code of preorder_traversal_iii_compact
1 year ago
Yudong Jin
075c3abf88
Add the section of max product cutting problem. ( #642 )
1 year ago
Yudong Jin
76f11ae168
Add the section of max capacity problem. ( #639 )
1 year ago
Yudong Jin
2b7d7aa827
Add the chapter of greedy. ( #633 )
...
Add the section of fractional knapsack.
1 year ago
krahets
c54536d1a1
Modify the problem of preorder_traversal_iii
1 year ago
krahets
4e13755023
Add implementation of array binary tree.
...
Rewrite the tree serialization and deserialization methods.
Add applications of array and linked list.
1 year ago
krahets
c68f18e480
Finetune
1 year ago
ZongYangL
03cbf5b972
Anonymous inner classes create generic instances that display the dec… ( #627 )
...
* Anonymous inner classes create generic instances that display the declared type
* Update TreeNode.java
* Update binary_tree_bfs.java
* Update graph_bfs.java
---------
Co-authored-by: zongjianwei <zongjianwei@meituan.com>
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
krahets
1f784dadb0
Add Java and C++ code for the chapter of
...
divide and conquer.
1 year ago
Yudong Jin
c3f80e52af
Add the section of edit distance problem ( #599 )
1 year ago
krahets
1c02859b13
Add the section of unbounded knapsack problem.
1 year ago
krahets
ad0fd45cfb
Add Java and C++ code for the chapter of DP.
1 year ago
krahets
cddddb8b8b
Update knapsack_problem and intro_to_dp
...
Fix avl_tree
1 year ago
krahets
920512d872
Update the section of intro to DP.
1 year ago
Yudong Jin
3f03663d2e
feat: add the section of the introduction to dynamic programming ( #571 )
...
* add the section of the introduction to
dynamic programming
* add a code comments.
1 year ago
krahets
54dc288e61
1. Remove Pair class from hash coliision code.
...
2. Fix the comment in my_list code.
3. Add a Q&A to the summary of sorting.
1 year ago