Commit Graph

2164 Commits

Author SHA1 Message Date
Yudong Jin a3166c2018 Simplify generated exercise page sources (#1943) 2026-07-19 07:19:42 +08:00
Yudong Jin 668f9b0cfb Keep edit links on Traditional Chinese exercises (#1942)
Remove the navigation metadata that hid the edit action from the generated Taiwan Traditional Chinese exercise pages.
2026-07-19 04:31:23 +08:00
Yudong Jin 9135647d93 Add translated chapter exercise pages (#1941)
Add dedicated chapter exercise sections and generated exercise pages for the English, Japanese, and Russian editions.

Add navigation for all published languages while keeping Taiwan Traditional Chinese exercise pages generated at build time.
2026-07-19 04:25:58 +08:00
Yudong Jin 4935d2d387 fix mobile reading media overflow (#1896) 2026-04-19 02:23:31 +08:00
Yudong Jin 22b3b568ef fix Ru translation (#1894)
* docs(ru): replace prose quotes with guillemets

* docs(ru): replace prose semicolons with periods

* docs(ru): align animation title forms

* docs(ru): align figure and table references
2026-04-14 18:10:12 +08:00
Yudong Jin 1d12e2def5 Update README translation review copy (#1886) 2026-04-10 23:15:43 +08:00
Yudong Jin b01036b09e Revisit the English version (#1885)
* Update giscus scroller.

* Refine English docs and landing page

* Sync the headings.

* Update landing pages.

* Update the avatar

* Update Acknowledgements

* Update landing pages.

* Update contributors.

* Update

* Fix the formula formatting.

* Fix the glossary.

* Chapter 6. Hashing

* Remove Chinese chars.

* Fix headings.

* Update giscus themes.

* fallback to default giscus theme to solve 429 many requests error.

* Add borders for callouts.

* docs: sync character encoding translations

* Update landing page media layout and i18n
2026-04-10 23:03:03 +08:00
Yudong Jin ae03a167a4 docs: sync character encoding translations (#1884) 2026-04-10 22:20:41 +08:00
Beatrix CHAN 56653a2698 Fix formatting of 'list' in documentation (#1883) 2026-04-10 02:27:39 +08:00
Yudong Jin edd13d4c86 Update giscus themes (#1879)
* Update giscus themes

* Adjust giscus dark button
2026-04-01 01:23:44 +08:00
Yudong Jin dcd4db3f54 Update landing page videos (#1878) 2026-03-31 23:56:00 +08:00
Yudong Jin 6e600f5ba7 Add animation player (#1877)
* Add auto slide controller.

* Fix the animation blocks.

* renamed as animation_player

* Bug fixes

* Refine animation player controls
2026-03-31 21:24:11 +08:00
Yudong Jin e3c74cfa01 Sync multilingual versions (#1875)
* Sync multilingual docs and comments

* Refactor zensical extra.css

* Refine zensical styles

* Tune zensical landing buttons

* Refine landing section themes
2026-03-31 18:31:56 +08:00
Yudong Jin 323eb92c0f Update chapter covers (#1874)
* Align headings in mkdocs.yaml

* Update chapter covers.

* Bug fixes

* Add the link of yuyanhuang

* Add hover effect to the profile texts.
2026-03-31 05:27:28 +08:00
Senrian e01acc8d97 fix: change Rust multi-line comment format from /** to // (#1859) 2026-03-30 14:47:46 +08:00
Kunchen-Luo c2eb1dbc5a Fix confusion between queSize and rear pointer in ArrayQueue implementation (#1851)
- `queSize` represents the queue's size, not the rear pointer position.
- In `pop`, `queSize--` decreases the size, not the rear pointer.
- The rear pointer is calculated using modulo (`%`) with the `front` and `queSize` to avoid confusion.

Co-authored-by: Chance Luo <247349913+chanceluo1618-bot@users.noreply.github.com>
2026-03-30 14:46:56 +08:00
Santosh Maturi 6251b8e232 fix: improve Dockerfile for international contributors (#1861)
* fix: improve Dockerfile for international contributors

- Upgrade base image from python:3.10.0-alpine to python:3.12-alpine
  for security patches
- Replace hardcoded Chinese PyPI mirror with configurable ARG defaulting
  to official PyPI (Chinese users can override via --build-arg)
- Add missing Japanese docs build step

Co-Authored-By: claude-flow <ruv@ruv.net>

* Change Python base image and add Russian docs

Updated Python base image from 3.12 to 3.10 and added support for Russian documentation.

---------

Co-authored-by: Santosh Maturi <santhum@amazon.com>
Co-authored-by: claude-flow <ruv@ruv.net>
Co-authored-by: Yudong Jin <krahets@163.com>
2026-03-30 14:37:29 +08:00
Yudong Jin a2cf8a3de7 Update landing pages and fonts (#1872)
* Update landing pages and fonts.

* Update the avatar.
2026-03-30 07:36:36 +08:00
Yudong Jin d7b2277d2b Re-translate the Japanese version (#1871)
* Retranslate Japanese docs with GPT-5.4

* Retranslate Japanese code with GPT-5.4
2026-03-30 07:30:15 +08:00
Yudong Jin fe6443235b Review the ru version with Codex. (#1870) 2026-03-30 07:27:40 +08:00
Yudong Jin 7a78369e4c Migrate to Zensical (#1869)
* Fix Russian Ruby code extraction.

* Add zensical configs.
2026-03-29 05:41:25 +08:00
Yudong Jin bc4c5ec414 Update the landing pages (#1867)
* Update translators info in the multi-lang landing pages.

* Update translators info in the multi-lang landing pages.

* Update desc of code reviewers.
2026-03-29 02:08:35 +08:00
Yudong Jin 772183705e Add ru version (#1865)
* Add Russian docs site baseline

* Add Russian localized codebase

* Polish Russian code wording

* Update ru code translation.

* Update code translation and chapter covers.

* Fix pythontutor extraction.

* Add README and landing page.

* placeholder of profiles

* Use figures of English version

* Remove chapter paperbook
2026-03-28 04:24:07 +08:00
Yudong Jin 2ca570cc33 Update multi-lang chapter covers. (#1864) 2026-03-28 02:09:21 +08:00
Yudong Jin 2213a59ff6 Update acknowledgements (#1842)
* Update acknowledgements.

* Sync zh and zh-hant versions.
2026-01-04 16:26:46 +08:00
Yudong Jin f304c8385a Update buttons in the landing pages. (#1841) 2026-01-02 05:44:19 +08:00
Yudong Jin 0586e611b7 Update buttons in READMEs (#1840)
* Update READMEs

* Update buttons in READMEs.
2026-01-02 05:16:24 +08:00
Yudong Jin b99aaa4fb8 Update READMEs (#1839)
* Update READMEs

* Update README.md
2026-01-02 05:09:21 +08:00
Yudong Jin 666da25a2a Prepare 1.3.0 release (#1838)
* Update the contributors list.

* Update the version number.

* Sync zh and zh-hant versions.

* Move epub builder to the utils branch.

* Optimize all figure files using pngquant.

* Update copyright.

* Update Acknowledgements.

* Update buttons in README.
1.3.0
2026-01-02 03:37:38 +08:00
Yudong Jin 10f76bd59a Remove incomplete zig code from docs. (#1837) 2025-12-31 19:47:59 +08:00
Yudong Jin 2778a6f9c7 Translate all code to English (#1836)
* Review the EN heading format.

* Fix pythontutor headings.

* Fix pythontutor headings.

* bug fixes

* Fix headings in **/summary.md

* Revisit the CN-to-EN translation for Python code using Claude-4.5

* Revisit the CN-to-EN translation for Java code using Claude-4.5

* Revisit the CN-to-EN translation for Cpp code using Claude-4.5.

* Fix the dictionary.

* Fix cpp code translation for the multipart strings.

* Translate Go code to English.

* Update workflows to test EN code.

* Add EN translation for C.

* Add EN translation for CSharp.

* Add EN translation for Swift.

* Trigger the CI check.

* Revert.

* Update en/hash_map.md

* Add the EN version of Dart code.

* Add the EN version of Kotlin code.

* Add missing code files.

* Add the EN version of JavaScript code.

* Add the EN version of TypeScript code.

* Fix the workflows.

* Add the EN version of Ruby code.

* Add the EN version of Rust code.

* Update the CI check for the English version  code.

* Update Python CI check.

* Fix cmakelists for en/C code.

* Fix Ruby comments
2025-12-31 07:44:52 +08:00
Yudong Jin 45e1295241 Revisit the English version (#1835)
* Review the English version using Claude-4.5.

* Update mkdocs.yml

* Align the section titles.

* Bug fixes
2025-12-30 17:54:01 +08:00
O 091afd38b4 add epub generator (#1831)
* add epub generator

* improve parser, keep images

* check epub after generate

* fix render math content error in block

* render \dots as ...

* render \lfoor and \rfloor

* use monospaced font to render code block

* render code block with syntax highlight

* adjust title render

* fix render LaTeX

* fix '!!! abstract' render

* render code block in flow

* include whole class when not specifiy function

* command line to build other language

* update README

* fix process python code example

* support build en, ja and zh-hant

* add '--all' option to build all version

* use branch docs to build epub

* fix title and toc render

* build epub file with name like 'hello-algo_{zh}_{cpp}.epub

* fix render LaTeX

* optimize style

* use math font

* fix extract code block

* add border for code block

* fix python code style

* fix page break

* try git pull first when build epub

* ajust title level of chapter section

* Update epub styles

* Update epub styles

* Update convers and fonts.

* Convert code comments and README into English.

* Update the output dir.

* Add code reviewers on the cover.

* Support multi language for the reviewer names.

* Update .gitignore

---------

Co-authored-by: krahets <krahets@163.com>
2025-12-30 08:23:31 +08:00
Yudong Jin 2db8f741a8 Add starfield.js in the landing page. (#1833) 2025-12-27 05:33:45 +08:00
Shyam Chen da230312cd ci: run CI with Node.js v24 (LTS) (#1822) 2025-10-30 20:27:41 +08:00
Yudong Jin 6cdc5ca0e4 Update ja/README (#1819)
* Update ja/README

* Update ja/README

* Update README.md
2025-10-17 05:28:31 +08:00
Ikko Eltociear Ashimine 954c45864b docs: add Japanese translate documents (#1812)
* docs: add Japanese documents (`ja/docs`)

* docs: add Japanese documents (`ja/codes`)

* docs: add Japanese documents

* Remove pythontutor blocks in ja/

* Add an empty at the end of each markdown file.

* Add the missing figures (use the English version temporarily).

* Add index.md for Japanese version.

* Add index.html for Japanese version.

* Add missing index.assets

* Fix backtracking_algorithm.md for Japanese version.

* Add avatar_eltociear.jpg. Fix image links on the Japanese landing page.

* Add the Japanese banner.

---------

Co-authored-by: krahets <krahets@163.com>
2025-10-17 05:04:43 +08:00
Yudong Jin 2487a27036 Update the Warp link. (#1815)
* Bug fixes.

* Update the Warp link.
2025-09-24 02:37:59 +08:00
Yudong Jin 44effb07e6 Bug fixes and improvements (#1813)
* 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.
2025-09-23 20:44:38 +08:00
Siz Long 790a6d17e1 Update Q&A of hash_table and time_complexity Chapter (#1760)
* Update summary.md

@Richard-Zhao93 的回答非常好,同时觉得"如果在开头能了解到这部分s,对初学者来说,可能更容易接受这些陌生的概念。"的建议很有道理

* Update QA of time_complexity

* Enhance explanation of hash tables vs arrays

Clarify the advantages of hash tables over arrays for key-value mapping.

* Update summary.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-09-20 19:52:59 +08:00
Beatrix CHAN 32dde5f82f translation: Update chapter_data_structure/classification_of_data_structure.md (#1800)
* Update classification_of_data_structure.md

* Update classification_of_data_structure.md

* Fix punctuation and formatting in data structure chapter

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-09-20 19:27:46 +08:00
sunshinesDL a69b5ef93b Update hash_map.md (#1802)
* Update hash_map.md

对目标句子的表达略微修改,使得前后句子的语义更加一致。

* Fix wording for bucket index calculation

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-09-20 19:26:04 +08:00
sunshinesDL 218e21e800 Update stack.md (#1788)
* Update stack.md

K大好,小白建议在这句话前面增加一个条件 -- "每次只能移动一个盘子",如此不仅可以对应后面的 `将上面的盘子**依次**移走`,从而避免了 "可以将上面的盘子一次移走" 的歧义;而且对应了每次移除一个元素的出栈逻辑。

* Refine explanation of stack data structure

Corrected phrasing for clarity in stack explanation.

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-09-20 19:18:35 +08:00
PXG-XPG 909b89680f fix: correct String.format() parameter passing error in climbing_stairs_*.java (#1807) 2025-09-20 19:11:51 +08:00
sunshinesDL 1e6a84119a Update array_hash_map.py (#1803)
基于数组实现的哈希表中,`get()` 函数的返回值还可能会 None;且 `put()` 函数不仅可添加键值对、还可更新表中已有键值对的值;
2025-09-20 19:09:03 +08:00
PXG-XPG 3709a97ca7 Update dp_solution_pipeline.md (#1806)
错别字
2025-09-11 01:53:37 +08:00
Yudong Jin 7b320e14fe Sync zh and zh-hant versions (#1801)
* Sync zh and zh-hant versions.

* Unifying "数据体量" -> "数据规模".
2025-08-28 04:51:02 +08:00
MetaSky 803c0e09c7 code: update zig 0.14.1 for the chapter of array_and_linkedlist and computational_complexity (#1787)
* update zig array list chapter

* update not need change codes.

* fix some pr issues and update time space chapter
2025-08-06 02:33:00 +08:00
rongyi 0918fd06f2 polish rust (#1790)
* polish graph

* Update graph
2025-08-04 14:45:14 +08:00
WuJing 83a806a602 greedy/max_capacity: fix myMax algorithm error (#1784)
Co-authored-by: wujing <realwujing@qq.com>
2025-07-21 15:12:34 +08:00