finds.dev← search

// the find

haoel/leetcode

★ 18,060 · C++ · updated Jan 2024

LeetCode Problems' Solutions

A personal C++ (and some Python/Java) solutions repo for LeetCode problems, covering problems 1-1946. It's what it says on the tin: one person's working solutions, no explanations, no discussion of tradeoffs, just code. Useful as a quick reference when you're stuck and want to see one possible implementation.

Coverage is genuinely wide — 500+ problems spanning easy to hard, including classics like LRU Cache, coin change variants, and graph problems. The directory-per-problem structure means you can grep for a problem name and land directly on the file. Multiple language options on some problems (C++, Python, Java) let you compare idioms. Problems link back to their LeetCode URLs so context is one click away.

No explanations or comments in the solutions — you get the code but not the reasoning, which limits the learning value for anyone who doesn't already understand the approach. Last update was January 2024 and coverage stops around problem 1946, so anything newer is missing. Solutions are authored by one person and haven't been reviewed for correctness or optimal complexity — some may be naive O(n²) where O(n log n) exists. No build system or test harness means you can't run or verify any solution without copy-pasting it into an IDE yourself.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →