Fix Chinese wording that contradicted the demo code: the C++ std::hash
scope, the Rust node-value hash label, the Go Pop comment and the Go
stack test comment. Russian sources and all six editions' snippets
follow; the Go heap snippets drop the repository-only PrintHeap call.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code snippets in the book are corrected and unified across languages and
kept as literal blocks in the snippet files. The demo sources keep their
#2033 form, with fixes only for real errors: wrong code, wrong printed
labels, comments that contradict the code, and typos. en/ja/ko demos are
rendered from the reviewed code dictionaries (krahets/hello-algo-workspace#78).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Batch 3b of the runnable-snippets plan. avl_tree_node now cites each
language's shared TreeNode in all 13 languages, and the C tree_node_class
shares the same region. Rust gets an import region; Java, C#, Swift and
Kotlin skip their serialization helpers with an adjacent region.
The shared nodes gain reviewed field comments in C++ and Rust, aligned
comments in Java, Swift and Kotlin, and a spacing fix in JavaScript. The
AVL section adds one sentence saying the shared node class already has
height. Four ru Rust files whose multi-line statements had collapsed into
literal \n now compile again. en, ja, ko and zh-hant are regenerated; ru
is synced by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Batch 3a of the runnable-snippets plan. heap_operations now cites the heap
demos in Python, C++, Java, C#, Go, Swift, Rust and Kotlin; the demos call
the library directly instead of push/pop helpers and print each popped value.
list_node_class cites each language's shared ListNode (Swift stays literal)
and doubly_list_node_class cites linkedlist_deque (Go stays literal).
Node comments adopt reviewed source wording, Rust and Swift get import
regions, the Ruby typo 前躯 becomes 前驱, and the TypeScript doubly node
fields become nullable. en, ja, ko and zh-hant are regenerated; ru is
synced by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Migrate init_array, hash_map_operations, hash_map_traversal,
queue_operations, deque_operations and insert_remove_node: zh and ru
demo sources gain region markers and the snippets' comments, en, ja and
ko are regenerated from reviewed translations, zh-hant via OpenCC. 70
blocks become region references; builtin_hash and five blocks without
reviewed translations stay literal.
The Java, Kotlin and Rust deque demos follow the book's order, and a few
demo comments and typos are aligned with the snippets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Doc snippets for init_linked_list, init_binary_tree, stack_operations and
five list.md entries now reference marked regions of the demo programs
instead of copying code, so the book shows code that is compiled and run.
- Mark regions in the zh demo files and add the snippet comments that the
demos lacked, reusing texts that already have reviewed translations.
- Sync ru by hand, regenerate en/ja/ko from the reviewed dictionaries and
derive zh-hant with OpenCC.
- Convert 97 snippet blocks in six editions to [file]{..}-[region]{..}
references; init_list and the Rust stack block stay literal until their
comments have reviewed translations.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Replace the exercise pages' Python-only snippets with source-backed implementations for the 13 visible programming languages, and localize reader-facing comments by site language. Zig remains out of scope.
Approval bypass: repository protection requires one approval but does not enforce it for administrators. All 68 completed checks succeeded; four non-required Java jobs remained queued on the existing ubuntu-20.04 workflow, with no failed checks.
* Sync zh and zh-hant version.
* Add the Warp sponsor banner.
* Update README with acknowledgments and Warp recommendation
Added acknowledgments and a recommendation for the Warp terminal application.
* Update README.md
* Update links in README.md to use HTTPS
* Sync zh and zh-hant versions.
* Add special thanks for Warp spnsorship.
* Use official warp image link.
* Update Copyright 2024 to 2025.
* Fix the flex of .profile-cell for mobile devices.
* Update performance_evaluation.md
* 抛出 -> 给出
* Sync zh and zh-hant version.
* Improve the landing page of the English version.
* Bug fixes
* Fix readme-typing-svg
* Update readme-typing-svg
* Bug fixes
* sync zh and zh-hant versions.
* Sync zh and zh-hant versions.
* Remove the polyfill.io link from mkdocs.yml
* Update contributors' info for code reviewers and en/zh-hant versions reviewers.
* Fix graph.md
* Update avatars for English version reviewers.
* Sync zh and zh-hant versions.
* Fix two_sum_brute_force.png
* Sync zh and zh-hant versions.
Optimize structrue of index.html.
* Format index.html
* Add Ruby and Kotlin icons
Add the avatar of @curtishd
* Update README
* Synchronize zh-hant and zh versions.
* Translate the pythontutor blocks to traditional Chinese
* Fix en/mkdocs.yml
* Update the landing page of the en version.
* Fix the Dockerfile
* Refine the en landingpage
* Fix en landing page
* Reset the README.md