Skip to content

nkoji21/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

LeetCode solutions repository

LeetCode Stats

Usage

1. Initial Setup

make init

Select your preferred language to create a working file.

2. Solve Problems

Edit the working file to solve problems.

# Run and test
make run

3. Save Solution

make sv

Enter the problem number (e.g., 17):

  • Saves to _result/0017.{ext} (4-digit zero-padded)
  • Auto-commits to git
  • Resets working file to template

4. Change Language

make setlang

Switch to a different language.

Directory Structure

.
├── main.c           # Working file
├── language         # Current language setting
├── Makefile
├── shell/
│   ├── init.sh      # Initial setup
│   ├── setlang.sh   # Language switcher
│   └── solve.sh     # Solution saver
├── _template/       # Language templates
│   ├── c/main.c
│   ├── cpp/main.cpp
│   └── python/main.py
└── _result/         # Saved solutions
    ├── 0001.c
    ├── 0002.c
    └── ...

About

LeetCode solutions by a 42Tokyo student.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages