This repository contains my solutions to various LeetCode problems across different difficulty levels.
The solutions are categorized by difficulty:
- Easy:
solutions/easy - Medium:
solutions/medium - Hard:
solutions/hard
Each solution has:
main.go: The Go implementation.README.md: Explanation of the solution.
- Navigate to a solution's directory.
- copy the solution to the leetcode problem that is linked in the readme file.
- Chose go for programming language in leetcode and run tests.
- Readme files contains leetcode problem link and explanation of the solution.
- The solutions are not necessarily the most idiomatic and optimal ones.
- some solutions can have test cases that are not covered by the leetcode problem, this is because I have added some extra test cases to make sure the solution is correct.
- If you want to create your own leetcode repository, you can use the
leetcode_init.shscript to create the directory structure and files for you :).
My leetcode account leetcode.com/u/domenez-dev/
Happy coding!