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.
This commit is contained in:
Yudong Jin
2026-08-18 04:57:57 +08:00
committed by GitHub
parent bf86c39b6c
commit 28c1e74c1d
180 changed files with 5795 additions and 230 deletions
+10
View File
@@ -4,6 +4,16 @@ version = "0.1.0"
edition = "2021"
publish = false
# Run Command: cargo run --bin complexity_exercises
[[bin]]
name = "complexity_exercises"
path = "chapter_computational_complexity/complexity_exercises.rs"
# Run Command: cargo run --bin fast_power
[[bin]]
name = "fast_power"
path = "chapter_divide_and_conquer/fast_power.rs"
# Run Command: cargo run --bin time_complexity
[[bin]]
name = "time_complexity"