A workspace for developing, optimizing, and comparing algorithm solutions across multiple languages and implementations.
Workflow per problem:
- Python — initial implementation for clarity and correctness.
- Optimized Python — refined for performance (e.g., faster algorithms or in‑place tricks).
- C — manual implementation, built with CMake for speed.
- Rust — safe, high-performance implementation using Cargo.
# Run the initial solution:
python3 python/<problem>.py
# Run the optimized version:
python3 python/<problem>_optimized.pycd c
mkdir -p build && cd build
cmake ..
make
# Example: run Game of Life
./game_of_lifecd rust/<problem>
cargo build --release
# Run the compiled binary:
cargo run --releaseFeel free to explore each language directory to compare implementation clarity, performance, and memory usage.