Skip to content

heyifan142857/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

374 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

This repository stores my LeetCode problem-solving practice in C++ and Rust.

Structure

  • problems/: regular C++ LeetCode problems
  • rust/src/bin/: regular Rust LeetCode problems managed by Cargo
  • weekly_contests/: C++ weekly contest folders
  • scripts/: Python helper scripts

Scripts

Install Python dependencies for chart generation:

python3 -m pip install -r requirements.txt

Create 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_matrix

Create a weekly contest folder with Q1.cpp to Q4.cpp:

python3 scripts/create_weekly_contest.py 493

Generate LeetCode statistics and charts:

python3 scripts/leetcode_stats.py

Print statistics without generating charts:

python3 scripts/leetcode_stats.py --no-plot

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages