My LeetCode solve log. A local script pulls my accepted submissions into
problem directories. The index and problems.json are generated from those
directories, and every solution runs its example cases in CI.
Solved: 19 total | 5 easy | 13 medium | 1 hard
| # | Title | Difficulty | Topics | Language |
|---|---|---|---|---|
| 1 | Two Sum | Easy | Array, Hash Table | Python |
| 3 | Longest Substring Without Repeating Characters | Medium | Hash Table, String, Sliding Window | Python |
| 15 | 3Sum | Medium | Array, Two Pointers, Sorting | Python |
| 20 | Valid Parentheses | Easy | String, Stack, Bracket Sequences | Python |
| 49 | Group Anagrams | Medium | Array, Hash Table, String, Sorting | Python |
| 74 | Search a 2D Matrix | Medium | Array, Binary Search, Matrix | Python |
| 84 | Largest Rectangle in Histogram | Hard | Array, Stack, Monotonic Stack, Range Minimum/Maximum Query | Python |
| 121 | Best Time to Buy and Sell Stock | Easy | Array, Dynamic Programming | Python |
| 125 | Valid Palindrome | Easy | Two Pointers, String | Python |
| 128 | Longest Consecutive Sequence | Medium | Array, Hash Table, Union-Find | Python |
| 155 | Min Stack | Medium | Stack, Design | Python |
| 167 | Two Sum II - Input Array Is Sorted | Medium | Array, Two Pointers, Binary Search | Python |
| 238 | Product of Array Except Self | Medium | Array, Prefix Sum | Python |
| 347 | Top K Frequent Elements | Medium | Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect | Python |
| 424 | Longest Repeating Character Replacement | Medium | Hash Table, String, Sliding Window | Python |
| 560 | Subarray Sum Equals K | Medium | Array, Hash Table, Prefix Sum | Python |
| 643 | Maximum Average Subarray I | Easy | Array, Sliding Window | Python |
| 739 | Daily Temperatures | Medium | Array, Stack, Monotonic Stack | Python |
| 853 | Car Fleet | Medium | Array, Stack, Sorting, Monotonic Stack | Python |
Directories may use a numbered name such as 0347-top-k-frequent-elements or
a plain problem slug. Add tests.py with a run(solution) function for Python;
the runner imports the solution file and passes its module to that function.
For C++, add tests_cpp.cpp with a main() containing the cases. The runner
combines it with the solution, compiles with g++ -std=c++20, and runs it.
Optional meta.yaml can supply missing metadata, for example
difficulty: Medium and topics: [Array, Hash Table]. Run
python3 tools/run_tests.py and python3 tools/generate_index.py before a push.