Flamingo
57cf6b1ea6
fix some typos ( #1540 )
2 weeks ago
hpstory
b3b10f2300
fix(csharp): priority queue comparer initialization ( #1542 )
2 weeks ago
rongyi
68a61f23d5
make dfs same as c/c++ and other small improvement ( #1543 )
2 weeks ago
rongyi
ef3010bd77
idomatic structure rust code, no include macro ( #1528 )
3 weeks ago
bongbongbakudan
c12d01a752
Update my_list.js ( #1511 )
...
修改insert注释
2 months ago
rongyi
7a345fc66b
Idiomatic rust ( #1505 )
2 months ago
Risun
2cd2a94ce6
fix(backtracking): minor mistake in Rust code for subset_sum_ii ( #1487 )
...
* fix(backtracking): minor mistake in Rust code for subset_sum_ii
* Update subset_sum_ii.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
3 months ago
rongyi
8a6ce26f6a
idiomatic rust ( #1485 )
...
* idomatic rust
* More idiomatic rust
* make rust code more idiomatic
* update
3 months ago
ZhongYuuu
6b2c38cae4
[cpp] Stick with swap ( #1474 )
...
* [cpp] Stick with swap
* [cpp] Stick with swap
3 months ago
Rui
2758e06374
remove unnecessary type conversions ( #1411 )
4 months ago
Flamingo
4190eca41a
fix(Go): code comment error ( #1404 )
...
* fix: comment error
* fix: comment error in zn-hant version
5 months ago
rongyi
017b95f003
Make rust more idomatic ( #1386 )
5 months ago
nil
0774920d7f
fix(Go): Update array_queue.go and array_deque.go ( #1362 )
...
* 🐞 fix: 队列为空时不应该操作指向
* 🧪 test: 添加pop测试用例
* 🔧 build: 修改testify依赖包
* 🐞 fix: 双向队列为空时,pop不操作指向
* 🔧 build:
Remove third-party packages
* Delete codes/go/go.sum
---------
Co-authored-by: Yudong Jin <krahets@163.com>
6 months ago
Yudong Jin
3f4220de81
Bug fixes and improvements ( #1380 )
...
* preorder, inorder, postorder -> pre-order, in-order, post-order
* Bug fixes
* Bug fixes
* Update what_is_dsa.md
* Sync zh and zh-hant versions
* Sync zh and zh-hant versions.
* Update performance_evaluation.md and time_complexity.md
* Add @khoaxuantu to the landing page.
* Sync zh and zh-hant versions
* Add @ khoaxuantu to the landing page of zh-hant and en versions.
6 months ago
khoaxuantu
a14be17b74
[feat] add ruby code - chapter dynamic programming ( #1378 )
6 months ago
rongyi
63bcdb798a
[Rust] make rust part more idomatic and fix panic of backtrack template ( #1370 )
...
* Drop unused variable
* Idiomatic rust
* Fix panic template
6 months ago
khoaxuantu
aa818945f0
feat: Add Ruby code - chapter "Backtracking" ( #1373 )
...
* [feat] add ruby code - chapter backtracking
* feat: add ruby code block - chapter backtracking
6 months ago
rongyi
21be3fdaf8
[Rust] Normalize mid calculation in case overflow ( #1363 )
...
* Normalize mid calculate in case overflow
* Change ALL language
* Update merge_sort.py
* Update merge_sort.zig
* Update binary_search_tree.zig
* Update binary_search_recur.py
---------
Co-authored-by: Yudong Jin <krahets@163.com>
6 months ago
Lanjing Gong
0e221540a3
fix(c): Fix malloc allocation of secondary pointers can lead to dump issues ( #1367 )
6 months ago
CarrotDLaw
9afbc9eda5
[Rust] Use arrays instead of vectors in Chapter 4.1 Array ( #1357 )
...
* [Rust] Use array in chapter 4.1
* docs: update comments
* docs: update comments
* docs: update comments
* fix: update slices
* docs: update comments
6 months ago
rongyi
840692acce
Idiomatic rust ( #1364 )
6 months ago
khoaxuantu
9e569cf520
feat: add ruby code - chapter "divide and conquer" ( #1361 )
6 months ago
rongyi
063a41fa7f
[Rust] No need to use mut iter ( #1356 )
...
* No need to use mut iter
* Update iter
6 months ago
rongyi
ebff1cce9f
Stick with swap ( #1352 )
6 months ago
rongyi
7a96f6a743
Fix panic when array's len is less than 2 ( #1353 )
6 months ago
khoaxuantu
1f606d6852
feat: add ruby codes - chapter greedy ( #1350 )
6 months ago
rongyi
56a165bf98
cargo fmt code ( #1349 )
6 months ago
Yudong Jin
c4a7966882
Bug fixes and improvements ( #1348 )
...
* Add "reference" for EN version. Bug fixes.
* Unify the figure reference as "the figure below" and "the figure above".
Bug fixes.
* Format the EN markdown files.
* Replace "" with <u></u> for EN version and bug fixes
* Fix biary_tree_dfs.png
* Fix biary_tree_dfs.png
* Fix zh-hant/biary_tree_dfs.png
* Fix heap_sort_step1.png
* Sync zh and zh-hant versions.
* Bug fixes
* Fix EN figures
* Bug fixes
* Fix the figure labels for EN version
6 months ago
khoaxuantu
cb32c525e7
feat: Add Ruby code - chapter "Sorting" ( #1333 )
...
* feat: add ruby code - chapter sorting
* Update radix_sort.rb
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
huangjikun
ee67d3e6a7
Maintain the same semantics as other languages in n_queens.go ( #1329 )
7 months ago
Martin Xu
59d07264fc
feat: add ruby code block - bucket sort ( #1285 )
...
* feat: add ruby code block - bucket sort
* Update codes/ruby/chapter_sorting/bucket_sort.rb
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* Update codes/ruby/chapter_sorting/bucket_sort.rb
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* Update bucket_sort.rb
---------
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
洪鈞閔 ( jasper )
68f3a453e1
feat: add ruby code block - merge sort ( #1260 )
...
* feat(codes/ruby/chapter_sorting/merge_sort.rb): add merge_sort ruby file
* feat(codes/ruby/chapter_sorting/merge_sort.rb): modify comment space
* feat(codes/ruby/chapter_sorting/merge_sort.rb): set array default value
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* feat(codes/ruby/chapter_sorting/merge_sort.rb): driver code add if logic
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* feat(codes/ruby/chapter_sorting/merge_sort.rb): modify comment style
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* feat(codes/ruby/chapter_sorting/merge_sort.rb): modify logic instruction
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
---------
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
7 months ago
洪鈞閔 ( jasper )
3f857db457
feat: add ruby code block - heap sort ( #1261 )
...
* feat(codes/ruby/chapter_sorting/heap_sort.rb): add heap_sort ruby file
* feat(codes/ruby/chapter_sorting/heap_sort.rb): modify comment space
* feat(codes/ruby/chapter_sorting/heap_sort.rb): modify code space style
* feat(codes/ruby/chapter_sorting/heap_sort.rb): modify logic instruction
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* feat(codes/ruby/chapter_sorting/heap_sort.rb): driver code add if logic
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
---------
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
7 months ago
Yudong Jin
870e3e5cb2
Bug fixes and improvements ( #1318 )
...
* Sync zh and zh-hant versions
* Update en/README.md
* Add a Q&A for chapter of introduction
* Update the callout headers
* Sync zh ang zh-hant versions
* Bug fixes
7 months ago
huangjikun
84b1ce2497
Fix incorrect method name in permutations_ii.go ( #1313 )
7 months ago
bluebean-cloud
a3950e1def
feat: Add ruby codes - chapter "Heap" ( #1300 )
...
* init heap Ruby
* feature: finish chapter heap for ruby
* fix delete heap.rb
* fix: Fix code style
* Update codes/ruby/chapter_heap/my_heap.rb
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* Update codes/ruby/chapter_heap/top_k.rb
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
* fix: apply the suggested changes
* fix to_a
* Update my_heap.rb
---------
Co-authored-by: khoaxuantu <68913255+khoaxuantu@users.noreply.github.com>
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
Yudong Jin
cfc273783b
feat: Add glossary and description for "哈希集合" ( #1310 )
7 months ago
rongyi
a88c7b9862
Change remove to pop ( #1309 )
7 months ago
khoaxuantu
9e7fbf249f
feat: add ruby code - chapter graph ( #1303 )
7 months ago
Shyam Chen
1a99dd420f
feat(JavaScript): Add the workflow file for CI check ( #1296 )
...
* feat(JavaScript): Add the workflow file for CI check
* Apply suggestions from code review
Co-authored-by: krahets <krahets@163.com>
* Test failure
* Update javascript.yml
* Test success
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
huangjikun
54ced94e4f
Fix incorrect indexes in two_sum.go ( #1297 )
7 months ago
Yudong Jin
f616dac7da
Bug fixes and improvements ( #1298 )
...
* Fix is_empty() implementation in the stack and queue chapter
* Update en/CONTRIBUTING.md
* Remove "剩余" from the state definition of knapsack problem
* Sync zh and zh-hant versions
* Update the stylesheets of code tabs
* Fix quick_sort.rb
* Fix TS code
* Update chapter_paperbook
* Upload the manuscript of 0.1 section
* Fix binary_tree_dfs.rb
* Bug fixes
* Update README
* Update README
* Update README
* Update README.md
* Update README
* Sync zh and zh-hant versions
* Bug fixes
7 months ago
Shyam Chen
587344da62
feat(TypeScript): Add the workflow file for CI check ( #1280 )
...
* feat(TypeScript): Add the workflow file for CI check
* fix: Install TypeScript Execute (tsx)
* test: Test failed
* test: Test successful
* test: on windows
* Add a bug
* feat: type checking
* test: Test successful
* feat: add main
* fix: use process
* feat: use es-main
* Test failure
* feat: streamlined configuration
* Apply suggestions from code review
Co-authored-by: Yudong Jin <krahets@163.com>
* feat: remove lock file
* Test failure
* Test success
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
cy-by-side
499419e4ce
Create quick_sort.rb ( #1223 )
...
* Create quick_sort.rb
* Update quick_sort.rb
* Update quick_sort.rb
* Update quick_sort.rb
7 months ago
khoaxuantu
19488b13c4
feat: add ruby codes - chapter tree ( #1288 )
7 months ago
khoaxuantu
be9931c8a1
feat: Add Ruby code - chapter "Hashing" ( #1276 )
...
* feat: add ruby code - chapter hashing
* feat: add ruby code blocks - chapter hashing
* fix: comments
7 months ago
nuquist19
2b11639103
fix(C): Update common.h ( #1278 )
...
请问这里为了防止重复包含头文件是不是应该改成COMMON_H,因为头文件名字叫做common.h
7 months ago
Yudong Jin
d484b08c15
Prepare 1.1.0 release ( #1274 )
...
* Update bucket_sort.c
* Fix the comments in quick_sort.c
* Update the announce badge
* Sync zh and zh-hant versions
* Update contributors list.
* Sync zh and zh-hant versions.
* Sync zh and zh-hant versions.
* Update the contributors list
* Update the version number
7 months ago
jiawenshi
16942dfe32
fix(C): fix the array initialization in coin_change.c ( #1277 )
...
* add
* Update coin_change.c
* Update coin_change.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
curtishd
4d9bbe72e1
Improve the consistency between code and comments in Kotlin ( #1268 )
...
* style(kotlin): Make code and comments consistent.
* style(kotlin): convert comment location.
* style(c): Add missing comment.
* style(kotlin): Remove redundant semicolon, parenthesis and brace
* style(kotlin): Put constants inside the function.
* style(kotlin): fix unnecessary indentation.
* style(swift): Add missing comment.
* style(kotlin): Add missing comment.
* style(kotlin): Remove redundant comment.
* style(kotlin): Add missing comment.
* Update linked_list.kt
* style(csharp,js,ts): Add missing comment.
* style(kotlin): Remove empty lines.
* Update list.cs
* Update list.js
* Update list.ts
* roll back to commit 1
* style(cs,js,ts): Add missing comment in docfile.
* style(kotlin): Use normal element swapping instead of scope functions.
7 months ago