* 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
* 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
* 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
* 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
* 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>
* 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
* 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>
* 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.
* 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
* 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>
* feat(kotlin):new kotlin support files
* fix(kotlin):
reviewed the formatting, comments and so on.
* fix(kotlin): fix the indentation and format
* feat(kotlin): Add kotlin code for the backtraking chapter.
* fix(kotlin): fix incorrect output of preorder_traversal_iii_template.kt file
* fix(kotlin): simplify kotlin codes
* fix(kotlin): modify n_queens.kt for consistency.
* feat(kotlin): add kotlin code for computational complexity.
* fix(kotlin): remove iteration folder.
* fix(kotlin): remove n_queens.kt file out of folder.
* fix(kotlin): remove some folders.
* style(kotlin): modified two chapters.
* feat(kotlin):new kotlin support files
* fix(kotlin):
reviewed the formatting, comments and so on.
* fix(kotlin): fix the indentation and format
* feat(kotlin): Add kotlin code for the backtraking chapter.
* fix(kotlin): fix incorrect output of preorder_traversal_iii_template.kt file
* fix(kotlin): simplify kotlin codes
* fix(kotlin): modify n_queens.kt for consistency.
* Update the format of Q&As in docs-en
* Fix the code comments of JavaScript and TypeScript
* Add the initial translation of the chapter of stack and queue
* Fix Python code
* Add the pythontutor blocks of the chapter tree, heap, graph, searching, sorting, divide and conquer, dynamic programming and greedy.
Improve the pythontutor blocks of the chapter array and linkedlist and backtracking.
Add the tutorial of pythontutor in how-to-read section.
* Reduce the image's file size.
* Update copyright
* Update the Python code
* Fix the code comments in ArrayBinaryTree
* Fix the code comments in ArrayBinaryTree
* Roll back time_comlexity.py
* Add the visualizing code(pythontutor) blocks to the chapter complexity, data structure, array and linked list, stack and queue, hash table, and backtracking
* Fix the code comments
* Translate 1.0.0b6 release with the machine learning translator.
* Update Dockerfile
A few translation improvements.
* Fix a badge logo.
* Fix EN translation of chapter_appendix/terminology.md (#913)
* Update README.md
* Update README.md
* translation: Refined the automated translation of README (#932)
* refined the automated translation of README
* Update index.md
* Update mkdocs-en.yml
---------
Co-authored-by: Yudong Jin <krahets@163.com>
* translate: Embellish chapter_computational_complexity/index.md (#940)
* translation: Update chapter_computational_complexity/performance_evaluation.md (#943)
* Update performance_evaluation.md
* Update performance_evaluation.md
* Update performance_evaluation.md
change 'methods' to 'approaches' on line 15
* Update performance_evaluation.md
on line 21, change the sentence to 'the results could be the opposite on another computer with different specifications.'
* Update performance_evaluation.md
delete two short sentence on line 5 and 6
* Update performance_evaluation.md
change `unavoidable` to `inevitable` on line 48
* Update performance_evaluation.md
small changes on line 23
* translation: Update terminology and improve readability in preface summary (#954)
* Update terminology and improve readability in preface summary
This commit made a few adjustments in the 'summary.md' file for clearer and more accessible language. "Brushing tool library" was replaced with "Coding Toolkit" to better reflect common terminology. Also, advice for beginners in algorithm learning journey was reformulated to imply a more positive approach avoiding detours and common pitfalls. The section related to the discussion forum was rewritten to sound more inviting to readers.
* Format
* Optimize the translation of
chapter_introduction/algorithms_are_everywhere.
* Add .gitignore to Java subfolder.
* Update the button assets.
* Fix the callout
* translation: chapter_computational_complexity/summary to en (#953)
* translate chapter_computational_complexity/summary
* minor format
* Update summary.md with comment
* Update summary.md
* Update summary.md
* translation: chapter_introduction/what_is_dsa.md (#962)
* Optimize translation of what_is_dsa.md
* Update
* translation: chapter_introduction/summary.md (#963)
* Translate chapter_introduction/summary.md
* Update
* translation: Update README.md (#964)
* Update en translation of README.md
* Update README.md
* translation: update space_complexity.md (#970)
* update space_complexity.md
* the rest of translation piece
* Update space_complexity.md
---------
Co-authored-by: ThomasQiu <thomas.qiu@mnfgroup.limited>
Co-authored-by: Yudong Jin <krahets@163.com>
* translation: Update chapter_introduction/index.md (#971)
* Update index.md
sorry, first time doing this... now this is the final change.
changes:
title of the chapter is shorter.
refined the abstract.
* Update index.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
* translation: Update chapter_data_structure/classification_of_data_structure.md (#980)
* update classification_of_data_structure.md
* Update classification_of_data_structure.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
* translation: Update chapter_introduction/algorithms_are_everywhere.md (#972)
* Update algorithms_are_everywhere.md
changed or refined parts of the words and sentences including tips.
Some of them I didnt change that much because im worried that it might not meet the requirement of accuracy.
some other ones i changed a lot to make it sound better, but also kind of following the same wording as the CN version
* Update algorithms_are_everywhere.md
re-edited the dictionary part from Piyin to just normal Eng dictionary.
again thank you very much hpstory for you suggestion.
* Update algorithms_are_everywhere.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
* Prepare merging into main branch.
* Update buttons
* Update Dockerfile
* Update index.md
* Update index.md
* Update README
* Fix index.md
* Fix mkdocs-en.yml
---------
Co-authored-by: Yuelin Xin <sc20yx2@leeds.ac.uk>
Co-authored-by: Phoenix Xie <phoenixx0415@gmail.com>
Co-authored-by: Sizhuo Long <longsizhuo@gmail.com>
Co-authored-by: Spark <qizhang94@outlook.com>
Co-authored-by: Thomas <thomasqiu7@gmail.com>
Co-authored-by: ThomasQiu <thomas.qiu@mnfgroup.limited>
Co-authored-by: K3v123 <123932560+K3v123@users.noreply.github.com>
Co-authored-by: Jin <36914748+yanedie@users.noreply.github.com>
* Sync recent changes to the revised Word.
* Revised the preface chapter
* Revised the introduction chapter
* Revised the computation complexity chapter
* Revised the chapter data structure
* Revised the chapter array and linked list
* Revised the chapter stack and queue
* Revised the chapter hashing
* Revised the chapter tree
* Revised the chapter heap
* Revised the chapter graph
* Revised the chapter searching
* Reivised the sorting chapter
* Revised the divide and conquer chapter
* Revised the chapter backtacking
* Revised the DP chapter
* Revised the greedy chapter
* Revised the appendix chapter
* Revised the preface chapter doubly
* Revised the figures
* 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.
* feat: Add preorder_traversal_i_compact.c
* feat(codes/c): Add head_sort.c
* feat(codes/c): Add bucket_sort.c
* feat(codes/c): Add binary_search_edge.c
* fix(codes/c): Add programs that are not managed by cmake (c code)
* feat(codes/c): Add selection_sort.c
* style(codes/c): Change swap in selection_sort.c to `selectionSort`
* styles(codes/c): Change style.
* fix(codes/c): Fix some formatting errors and temporarily remove backtracking chapters
* fix(codes/c): Fix space_complexity.c build error.
* feat(codes/c): Add array_binary_tree.c
* feat(code/c): Update push_back and pop_back in vector.h
* styles(codes/c): Adjust format.
* feat(codes/c): Add `interation.c ` `recursion.c` `simple_hash.c` `binary_search_edge.c` `binary_search_insertion.c` in C codes.
* fix(mylist.c): Fix `insert` function in `mylist.c`
https://github.com/krahets/hello-algo/discussions/32#discussioncomment-6974163
* feat(codes/c): Add binary_search_recur.c
* fix(codes/c): Bug fixes in discussion
https://github.com/krahets/hello-algo/discussions/78\#discussioncomment-7611511https://github.com/krahets/hello-algo/discussions/428\#discussioncomment-7637613
---------
Co-authored-by: Yudong Jin <krahets@163.com>
* Replace VLA with malloc
Replace VLA with malloc to make C code
compatible with cl compiler on Windows.
* Fix C code for CI compiler.
* Fix C code compability to CI.
* check the trigger
* 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