This repository stores my LeetCode problem-solving practice in C++ and Rust.
problems/: regular C++ LeetCode problemsrust/src/bin/: regular Rust LeetCode problems managed by Cargoweekly_contests/: C++ weekly contest foldersscripts/: Python helper scripts
Install Python dependencies for chart generation:
python3 -m pip install -r requirements.txtCreate a normal C++ problem file:
python3 scripts/create_problem.py "1582. Special Positions in a Binary Matrix"Create a normal Rust problem file:
python3 scripts/create_problem.py --lang rust "1582. Special Positions in a Binary Matrix"Run a Rust problem locally:
cd rust
cargo run --bin p1582_special_positions_in_a_binary_matrixCreate a weekly contest folder with Q1.cpp to Q4.cpp:
python3 scripts/create_weekly_contest.py 493Generate LeetCode statistics and charts:
python3 scripts/leetcode_stats.pyPrint statistics without generating charts:
python3 scripts/leetcode_stats.py --no-plot