Commit Graph

161 Commits

Author SHA1 Message Date
Yudong Jin
db2ec561bd Preserve the homepage universe across languages and screen sizes (#2016) 2026-11-04 03:28:06 +08:00
Yudong Jin
f7aed49eeb Keep homepage chapter labels above illustration hit boxes (#2015) 2026-11-04 02:17:00 +08:00
Yudong Jin
78328cd538 Load homepage 3D directly and preload below-fold media (#2014) 2026-11-04 02:02:14 +08:00
Yudong Jin
9add126dd5 Add an illustrated 3D homepage with shared multilingual assets (#2013)
* Animate homepage illustrations with layered starfield and pointer parallax

* Add stylized rotating planet samples and animated hourglass

* Unify homepage universe with complete illustrated 3D models

* Give localized chapter labels room around 3D silhouettes

* Keep chapter labels readable within narrow viewports

* Use readable translated chapter lists through tablet widths

* Preserve original hero artwork with constrained spherical and depth motion

* Keep translated chapter labels clear of original planet silhouettes

* Restore continuous planet motion with chapter-specific illustrated surfaces

* Rebuild every planet with reference-led paint and smooth orbital rings

* Keep planet paint continuous through side views and mip seams

* Render illustrated planets sharply on high-density displays

* Match orbital ring foreground occlusion to the illustrations

* fix(hero): align painted belts and rings with planet spin axes

* fix(hero): keep array purple belts aligned throughout a full turn

* fix(hero): repair central artwork and soften motion feedback

* perf(hero): deliver only baked astronaut and ground artwork

* Share homepage templates and deliver responsive cached assets across locales

* Retain compact original avatar encodings in the shared homepage bundle

* Restore English reading mockups and hide demo video controls

* Unify landing header and universe background at 171717

* Repair planet texture joins while preserving illustrated motifs

* Use shared high-resolution planet maps and defer below-fold homepage media

* Use Q75 for homepage images, planet textures and video posters

* Use the same homepage image sources in all viewport sizes

* Keep homepage navigation visible and recover coupled motion and deferred media

* Reserve desktop space for homepage reading actions
2026-11-04 01:06:14 +08:00
Yudong Jin
591a28427d Remove Chinese print-book promotion from the English edition (#2011) 2026-10-31 04:03:23 +08:00
Yudong Jin
14c314c08c Retranslate the complete English edition from Simplified Chinese (#2010)
* Retranslate the complete English edition from Simplified Chinese

* Polish three English explanations after reader-focused review
2026-10-31 03:35:51 +08:00
Yudong Jin
2f561d3d51 feat(ko): add the Korean online edition (#2006)
* feat(ko): add the complete Korean online edition

* Use UTF-8 for Python CI output on Windows

* Remove print-book promotion from the Korean site

* fix(ko): preserve emphasis before Korean particles
2026-10-29 03:46:43 +08:00
Yudong Jin
350f483801 docs: explain why learning algorithms still matters with AI agents (#1977)
Add the AI agents and algorithm learning Q&A to all five language editions.

Related to #1928.
2026-10-11 05:15:17 +08:00
Yudong Jin
80f772d100 docs(en): use the standard Tower of Hanoi name (#1975)
* docs(en): use the standard Tower of Hanoi name

* docs(en): preserve existing Hanoi diagram step labels

* docs(en): retain Problem in Tower of Hanoi title

* docs(en): retain problem in the Hanoi glossary entry
2026-10-11 03:03:52 +08:00
Yudong Jin
c2bc202a8d docs: update Go map implementation for Go 1.24 (#1974)
* docs: update Go map implementation for Go 1.24

* docs: keep Swiss Table wording unlinked across translations

* docs(ja): align open addressing terminology with the chapter
2026-10-11 03:03:46 +08:00
mazezen
7afce71b13 fix: seed C array example randomness once across translations (#1910)
Co-authored-by: krahets <krahets@163.com>
2026-10-11 02:23:46 +08:00
mazezen
04757b6a57 fix: remove redundant counter in C complexity examples (#1908)
Co-authored-by: krahets <krahets@163.com>
2026-10-11 01:26:58 +08:00
nguyen-ta-cuong
46a09cf31a fix: correct Swift fixed-size array insertion bounds (#1968)
Co-authored-by: Cuong Nguyen <cuongnt04230@gmail.com>
Co-authored-by: krahets <krahets@163.com>
2026-10-11 01:26:44 +08:00
Yudong Jin
620abe42f3 fix: sync array, deque, and printing fixes across translations (#1973)
Synchronize the fixes from #1936, #1824, and #1961 across translated editions and normalize C# and Dart formatting. Move Java CI to Ubuntu 24.04 so its Java 11/17 checks can run.
2026-10-11 00:58:16 +08:00
Beatrix CHAN
db6f21aaf5 fix: use repository image paths and descriptive badge alt text in READMEs (#1969)
Use repository-relative image paths in the five language READMEs and add descriptive language badge alt text. Point the Russian README header to the existing shared image.
2026-10-10 15:14:25 +08:00
Yudong Jin
28c1e74c1d Add multilingual exercise code (#1959)
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.
2026-08-18 04:57:57 +08:00
Yudong Jin
bf86c39b6c Fix multilingual content typos (#1958) 2026-08-18 03:08:23 +08:00
Yudong Jin
69932aed18 Remove Warp sponsorship and refine endorsement cards (#1953)
Remove the ended Warp sponsorship from multilingual READMEs and landing pages, and restyle the landing-page endorsements as rounded cards.
2026-07-24 15:31:39 +08:00
Yudong Jin
a3166c2018 Simplify generated exercise page sources (#1943) 2026-07-19 07:19:42 +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
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
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
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
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.
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
Yudong Jin
2db8f741a8 Add starfield.js in the landing page. (#1833) 2025-12-27 05:33:45 +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
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
PXG-XPG
909b89680f fix: correct String.format() parameter passing error in climbing_stairs_*.java (#1807) 2025-09-20 19:11:51 +08:00
Beatrix CHAN
301adcf416 translation: Update algorithms_are_everywhere.md (#1733)
* Improve English Translation for algorithms_are_everywhere.md

* Fixed line 5, 7, 10

* Keep initial alt text for binary search demonstration

* Update Example 3 English translation

* Update algorithms_are_everywhere.md

* Update algorithms_are_everywhere.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-07-10 06:54:30 +08:00
Magenta Qin
f47d371035 translation: Update EN translation for Introduction Chapter (#1739)
* doc: update en translation of algorithm_are_everywhere

* doc: update en translation of what_is_dsa

* doc: update en translation of summary

* feat: en translation for Q&A

* doc: update en translation to make it more concise

* Update algorithms_are_everywhere.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-07-10 06:38:30 +08:00
Magenta Qin
e058e14253 translation: Update en translation for preface (#1738)
* doc: update en translation for preface

* doc: fix blank line and other typos

* doc: fix period
2025-07-10 06:36:16 +08:00
Yudong Jin
e8dc4736a2 Bug fixes and improvements. (#1780)
* Fix the "尾递归优化" to "递归深度优化" in quick_sort.

* Update landing pages.

* Sync zh and zh-hant versions.

* Sync zh and zh-hant versions.
2025-07-10 06:32:25 +08:00
Dr.XYZ
ceec0eaa3a Specify currency unit in the "Price" row of the storage compar… (#1755)
* Specify currency unit as CNY in the "Price" row of the storage comparison table

* Revert changes to the English version

* Change currency unit to USD

* fix

* fix space

* Update ram_and_cache.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-06-12 20:57:47 +08:00