LeetCode solutions repository
make initSelect your preferred language to create a working file.
Edit the working file to solve problems.
# Run and test
make runmake svEnter the problem number (e.g., 17):
- Saves to
_results/<contest>/0017.{ext}(4-digit zero-padded) - Auto-commits to git
- Resets working file to template
make setlangSwitch to a different language.
.
├── main.c / main.cpp / main.py # Working file (language-dependent)
├── language # Current language setting
├── contest # Current contest setting (lc/nc)
├── Makefile
├── shell/
│ ├── init.sh # Initial setup
│ ├── setlang.sh # Language switcher
│ ├── setcontest.sh # Contest switcher
│ └── solve.sh # Solution saver
├── _template/ # Language templates
│ ├── c/main.c
│ ├── cpp/main.cpp
│ └── python/main.py
└── _results/ # Saved solutions
└── lc/
├── 0001.c
├── 0002.c
└── ...