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
bluebean-cloud
92337671a6
feat: Add Ruby code - chapter "Searching" ( #1262 )
...
* create RUBY searching files & finish two_sum.rb
* finish linear_search.rb
* finish hashing_search.rb
* finish binary_search.rb
* finish binary_search_insertion.rb
* finish binary_search_edge.rb
* fix: change 'or' to '||'
* fix: Adjust the code style(ruby searching)
* fix: repair file name
* fix: Adjust the output format
* fix: fix 0...nums.length & delete useless require & change into __FILE__==0 block
7 months ago
Lanjing Gong
aca850244b
fix(C): fix array_hash_map.c and bucket_sort.c ( #1272 )
...
* fix: Fix coding error, https://github.com/krahets/hello-algo/discussions/440#discussioncomment-8958379
* fix: Fix issue 1237 https://github.com/krahets/hello-algo/issues/1237
* Update array_hash_map.c
* Update bucket_sort.c
* Update bucket_sort.c
* Update array_hash_map.c
* Update bucket_sort.c
* Update bucket_sort.c
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
cy-by-side
49e6a208f6
Create insertion_sort.rb ( #1222 )
...
* Create insertion_sort.rb
* Update insertion_sort.rb
* Update insertion_sort.rb
* Update insertion_sort.rb
7 months ago
khoaxuantu
6404a53fc6
chore: update driver code ( #1265 )
7 months ago
curtishd
a3ee733e7b
fix(Kotlin): Remove empty lines ( #1264 )
7 months ago
echoless
30fd4ef646
添加for循环的花括号以增加可读性和可维护性 ( #1249 )
7 months ago
curtishd
1623e3c6a8
feat(Kotlin): Replace `value` with `_val` ( #1254 )
...
* ci(kotlin): Add workflow file.
* Update kotlin.yml
* style(kotlin): value -> _val
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
Yudong Jin
78f71eeacb
Bug fixes and improvements ( #1252 )
...
* Bug fixes
* Fix the landing page of zh-hant version
* Bug fixes and add an Q&A for chapter_data_structure
* Update the mindmap for zh-hant version
7 months ago
curtishd
896d9a64f6
Refine kotlin code ( #1241 )
...
* style(kotlin): Improve kotlin codes readability.
* remove redundant quotes.
* style(kotlin): improve codes readability.
* style(kotlin): refine kotlin codes.
* Create kotlin.yml
* Create kotlin.yml
* Delete .github/workflows/kotlin
* Delete .github/workflows/main.yml
* Create kotlin.yml
* Update kotlin.yml
* Delete .github/workflows/kotlin.yml
* Create hello_world_workflow.main.kts
* Delete .github/workflows/hello_world_workflow.main.kts
* remove empty line
7 months ago
khoaxuantu
41dd677338
Add Ruby test CI ( #1242 )
...
* test: add test all Ruby code
* test: add ruby test ci
* Update ruby.yml
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
curtishd
3fe8f67ba9
Improve readability of Kotlin code ( #1236 )
...
* style(kotlin): Improve kotlin codes readability.
* remove redundant quotes.
* style(kotlin): improve codes readability.
7 months ago
curtishd
5725b8a0f1
Improve readability of kotlin code ( #1233 )
...
* style(kotlin): Improve kotlin codes readability.
* remove redundant quotes.
7 months ago
khoaxuantu
e121665772
feat: add ruby code - chapter stack and queue ( #1230 )
7 months ago
rongyi
f901a31bae
fix(Rust): no need to clone in hash put fn ( #1226 )
...
* no need to clone in hash put fn
* fmt rust code
* make code more readable
* Change vec append to extend, more friendly to rookie rust dev
* drop comment
7 months ago
khoaxuantu
4fadad50ba
fix: Some Ruby code ( #1231 )
...
* fix: ruby code block - chapter computational complexity
* fix: ruby code - chapter array and linkedlist
7 months ago
Yang Le
db164f6703
fix memory leak in the C code ( #1203 )
...
* fix memory leak when size(deque) == 1
* fix memory leak
7 months ago
curtishd
2655a2f66a
Simplify kotlin code and improve code readability ( #1198 )
...
* Add kotlin code block for chapter_hashing
* Add kotlin code block for chapter_heap.
* Add kotlin code block for chapter_stack_and_queue and chapter_tree
* fix indentation
* Update binary_tree.md
* style(kotlin): simplify code and improve readability.
* simplify kt code for chapter_computational_complexity.
* style(kotlin): replace ArrayList with MutableList.
* Update subset_sum_i.kt
Use kotlin api instead of java.
* Update subset_sum_ii.kt
use kotlin api instead of java
* style(kotlin): replace ArrayList with mutablelist.
---------
Co-authored-by: Yudong Jin <krahets@163.com>
7 months ago
Yudong Jin
6e570e2863
Update README for zh-hant version ( #1228 )
...
* Bug fixes
* Fix the term in heap figures
* Unify the font of the chapter covers for the zh, en, and zh-Hant version
* Sync the zh-hant vertion with the main branch
* Update README for testing
* Update README for testing
* Update README for testing
* Update README for zh, en, zh-hant version
* Fix the issue links
* Update README
* Update README
* edition -> version
8 months ago
cy-by-side
d8cae21da3
Fix the driver code of quick_sort.cpp ( #1219 )
8 months ago
khoaxuantu
043085d0ea
fix: adapt missing ruby style guide ( #1216 )
8 months ago
cy-by-side
c435d177a1
Create chapter_computational_complexity/iteration.rb ( #1207 )
...
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
khoaxuantu
fd580a184a
feat: Add Ruby code - chapter "computational complexity" ( #1212 )
...
* feat: add ruby code - chapter computational complexity
* feat: add ruby code blocks
8 months ago
Yudong Jin
b3f100aff1
Bug fixes and improvements ( #1205 )
...
* Add Ruby code blocks to documents
* Remove Ruby code from en/docs
* Remove "center-table" class in index.md
* Add "data-toc-label" to handle the latex heading during the build process
* Use normal JD link instead.
* Bug fixes
8 months ago
khoaxuantu
5ce088de52
Fix inconsistent comments Ruby - chapter array and linked list ( #1202 )
...
* fix: inconsistent comments Ruby - chapter array and linked list
* fix: better Ruby code & comments
8 months ago
Yudong Jin
034ee65e9a
Fix bugs and harmonize the code comments ( #1199 )
...
* Fix the comment in array_deque.go
* Fix the comment in bucket_sort.c
* Translate the Java code comments to Chinese
* Bug fixes
* 二分查找 -> 二分搜尋
* Harmonize comments in `utils` between multiple programming languages
8 months ago
khoaxuantu
85ca4cce43
feat: Add ruby code - chapter "array & linked list" ( #1158 )
...
* feat: add ruby code chapter array & linked list
- array.rb
- linked_list.rb
- list.rb
- my_list.rb
* feat: add ruby code blocks
* chore: fix convention
8 months ago
rongyi
556af1624c
No need to match expand pop, just return it ( #1154 )
8 months ago
curtishd
9c07ca99f3
Fix the comment in recursion.kt ( #1177 )
...
* feat(kotlin): add kotlin code for utils file.
* Update ListNode.kt
* Update PrintUtil.kt
* fix: add the header comment for linkedlist_stack class.
* fix(kotlin): fix the kotlin file name.
* delete blank line in main function
* add comment for class head.
* delete the old file.
* fix the created time
* delete blank line beneath files.
* keep tailRecur function consistent with other.
* Update recursion.kt
---------
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
Yudong Jin
43bb45bceb
Several bug fixes and improvements ( #1178 )
...
* Update pythontutor block with the latest code
* Move docs-en to en/docs
* Move mkdocs.yml and README to en folder
* Fix en/mkdocs.yml
* Update the landing page
* Fix the glossary
* Reduce the font size of the code block tabs
* Add Kotlin blocks to en/docs
* Fix the code link in en/.../deque.md
* Fix the EN README link
8 months ago
curtishd
42f48405ef
Fix all the incorrect comment in kotin files ( #1176 )
...
* feat(kotlin): add kotlin code for utils file.
* Update ListNode.kt
* Update PrintUtil.kt
* fix: add the header comment for linkedlist_stack class.
* fix(kotlin): fix the kotlin file name.
* delete blank line in main function
* add comment for class head.
* delete the old file.
* fix the created time
* delete blank line beneath files.
---------
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
curtishd
5ec5ef9af0
Add kotlin code for the utils file ( #1175 )
...
* feat(kotlin): add kotlin code for utils file.
* Update ListNode.kt
* Update PrintUtil.kt
---------
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
curtishd
5e77a64341
Add kotlin code for the chapter of tree ( #1172 )
...
* modified array.kt.
* feat(kotlin): add kotlin code for the chapter of stack and queue.
* modified array.kt
* modified comments.
* feat(kotlin): add kotlin code for the chapter of tree.
* feat(kotlin): add kotlin code for the chapter of tree.
8 months ago
curtishd
6069cb89a7
Add kotlin code for the chapter of stack and queue ( #1162 )
...
* modified array.kt.
* feat(kotlin): add kotlin code for the chapter of stack and queue.
* modified array.kt
* modified comments.
8 months ago
Yudong Jin
3ea91bda99
fix: Use int instead of float for the example code of log time complexity ( #1164 )
...
* Use int instead of float for the example code of log time complexity
* Bug fixes
* Bug fixes
8 months ago
nuomi1
7359a7cb4b
Review Swift codes ( #1150 )
...
* feat(swift): review for chapter_computational_complexity
* feat(swift): review for chapter_data_structure
* feat(swift): review for chapter_array_and_linkedlist
* feat(swift): review for chapter_stack_and_queue
* feat(swift): review for chapter_hashing
* feat(swift): review for chapter_tree
* feat(swift): add codes for heap article
* feat(swift): review for chapter_heap
* feat(swift): review for chapter_graph
* feat(swift): review for chapter_searching
* feat(swift): review for chapter_sorting
* feat(swift): review for chapter_divide_and_conquer
* feat(swift): review for chapter_backtracking
* feat(swift): review for chapter_dynamic_programming
* feat(swift): review for chapter_greedy
* feat(swift): review for utils
* feat(swift): update ci tool
* feat(swift): trailing closure
* feat(swift): array init
* feat(swift): map index
8 months ago
Nan Lei
300a781fab
Update code comment of quadratic in time_complexity ( #1155 )
8 months ago
curtishd
1845937c5a
Add kotlin code for the chapter of sorting ( #1145 )
...
* feat(kotlin): add kotlin code for chapter sorting.
* style(kotlin): fix some indent.
* refactor(kotlin): refactor quick_sort.kt files.
* style(kotlin): modified medianThree function.
8 months ago
Yudong Jin
7f43f92ae9
Bug fixes and improvements ( #1152 )
...
* Update avl_tree.md
* Remove the empty space
* Simplify the heading of the paperbook chapter
* Update hash_map_open_addressing.go to the latest version
* Improvements
8 months ago
rongyi
6f1ec66949
Fix rust compile warning and an obvious print error in array.rs ( #1144 )
...
* Fix rust compile warning and an obvious print error in array.rs
* Update LinkedList
1. drop unnessaray mut borrow
2. fmt code and make variable more readable
* follow convention of this repo
* Update list_node.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
rongyi
7b1094318b
cargo fmt rust code ( #1131 )
...
* cargo fmt code
* Add empty line to seperate unrelated comments
* Fix review
* Update bubble_sort.rs
* Update merge_sort.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
curtishd
54ceef3443
feat(kotlin): add kotlin codes for the chapter of searching. ( #1140 )
8 months ago
curtishd
a05192ea0f
Add kotlin code for the chapter of heap ( #1115 )
...
* feat(kotlin): add kotlin code for dynamic programming.
* Update knapsack.kt
* feat(kotlin): add kotlin codes for graph.
* style(kotlin): reformatted the codes.
* feat(kotlin): add kotlin codes for the chapter of greedy.
* Update max_product_cutting.kt
* feat(kotlin): add kotlin code for chapter of hashing.
* style(kotlin): modified some comment
* Update array_hash_map.kt
* Update hash_map_chaining.kt
* Update hash_map_chaining.kt
* feat(kotlin): add kotlin codes for the chapter of heap.
* Update my_heap.kt
8 months ago
Yudong Jin
9769e14017
Fix the median_three mehod for quick sort ( #1134 )
...
* Add the section of terminologies.
* fix format
* Fix median_three function for quick sort
* Delete docs/chapter_appendix/terminologies.md
* Update quick_sort.ts
* Update quick_sort.rs
* Update quick_sort.js
8 months ago
Prime.X
644eaf99ff
fix: code comments for insertion_sort.go ( #1132 )
...
* fix: code comments for insertion_sort.go
* Update insertion_sort.go
---------
Co-authored-by: Prime Xiao <primexiao.dev@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
Yudong Jin
01c67781fa
Bug fixes and improvements ( #1133 )
...
* Bug fixes
* Update the figure of the JD link
* Unify the code comments of insertion_sort
8 months ago
curtishd
eadf4c86d4
Add kotlin code for the chapter of hashing ( #1104 )
...
* feat(kotlin): add kotlin code for dynamic programming.
* Update knapsack.kt
* feat(kotlin): add kotlin codes for graph.
* style(kotlin): reformatted the codes.
* feat(kotlin): add kotlin codes for the chapter of greedy.
* Update max_product_cutting.kt
* feat(kotlin): add kotlin code for chapter of hashing.
* style(kotlin): modified some comment
* Update array_hash_map.kt
* Update hash_map_chaining.kt
* Update hash_map_chaining.kt
8 months ago
curtishd
89679a4a13
Add kotlin codes for the chapter of greedy ( #1103 )
...
* feat(kotlin): add kotlin code for dynamic programming.
* Update knapsack.kt
* feat(kotlin): add kotlin codes for graph.
* style(kotlin): reformatted the codes.
* feat(kotlin): add kotlin codes for the chapter of greedy.
* Update max_product_cutting.kt
9 months ago