Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm Testing Repository

A workspace for developing, optimizing, and comparing algorithm solutions across multiple languages and implementations.

Workflow per problem:

  1. Python — initial implementation for clarity and correctness.
  2. Optimized Python — refined for performance (e.g., faster algorithms or in‑place tricks).
  3. C — manual implementation, built with CMake for speed.
  4. Rust — safe, high-performance implementation using Cargo.

🚀 Getting Started

Python

# Run the initial solution:
python3 python/<problem>.py

# Run the optimized version:
python3 python/<problem>_optimized.py

C (CMake)

cd c
mkdir -p build && cd build
cmake ..
make
# Example: run Game of Life
./game_of_life

Rust (Cargo)

cd rust/<problem>
cargo build --release
# Run the compiled binary:
cargo run --release

Feel free to explore each language directory to compare implementation clarity, performance, and memory usage.

About

This repo is a playground for writing algorithms and optimizations

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages