A clean and organized place to learn algorithms, build data structures, and save answers for coding problems.
This project is a helpful library and a place to practice. The code is split into parts. This keeps basic computer science ideas separate from specific LeetCode problems.
/algorithms: Important algorithms grouped by what they do./data_structures: Basic data structures built from zero./leetcode: Answers to coding problems. Every problem has its own folder. This keeps the code clean and makes it easy to test.
- Table Tests: Every folder has good tests. We use tables to check many different inputs and make sure the code works.
- Speed Checks: We check how fast the code runs. This helps us make the functions better.
- Clone the project to your computer.
- Go to any folder (for example:
cd leetcode/binary_search). - Run the tests and speed checks using this command:
go test -v -bench=.