Welcome to my LeetCode solutions repository! 🚀 Here, I will be solving all the LeetCode challenges in four programming languages: Go, Python, JavaScript, and Kotlin.
Feel free to explore the solutions and track my progress on my LeetCode profile.
This repository contains solutions implemented in the following languages:
- Go (
.go
) - Python (
.py
) - JavaScript (
.js
) - Kotlin (
.kt
)
The repository is organized by problem categories, with each problem having subdirectories for the different language solutions. the structure follows Neetcode's roadmap
arrays-and-hashing/
└── containsDuplicate
├── go
│ ├── solution.go
│ └── tests_test.go
├── js
│ ├── solution.js
│ └── tests.js
├── kotlin
│ └── solution.main.kts
├── python
│ ├── __pycache__
│ ├── solution.py
│ └── tests.py
└── README.md
Each folder represents a specific problem, and the solutions for each language are provided within that problem's folder.
I will be updating this repository regularly as I complete more LeetCode problems. You can check my overall progress on my LeetCode profile.
-
Clone the repository:
git clone https://github.com/yourusername/leetcode-repo.git cd leetcode-repo
-
Navigate to a problem folder to view the solutions for that problem in different languages.
-
Run the tests:
- Go:
Create a
go.mod
file in the root of the project, then run:cd go go test -v
- JavaScript:
cd js node tests.js
- Kotlin:
Make sure to have Kotlin installed (e.g., on Arch Linux:
sudo pacman -S kotlin
). Then run:cd kotlin ./solution.main.kts
- Python:
cd python python tests.py
- Go:
Create a
If you have any questions or suggestions, feel free to reach out!
- GitHub: bensonoyugi
- Email: bensonoyugi
- LeetCode: Benson Oyugi