A collection of my personal LeetCode solutions, continuously updated as I work through problems across multiple languages and topics.
Each problem lives in its own folder named after the problem number and slug:
{problem-number}-{problem-slug}/
For example:
1-two-sum/
42-trapping-rain-water/
206-reverse-linked-list/
- Arrays & Hashing — Two Sum, Contains Duplicate, Product of Array Except Self
- Two Pointers — Valid Palindrome, 3Sum, Container With Most Water
- Sliding Window — Max Consecutive Ones III, Longest Subarray of 1s
- Linked Lists — Reverse Linked List, Merge Two Sorted Lists, Remove Nth Node
- Binary Trees — Same Tree, Path Sum, Convert Sorted Array to BST
- Dynamic Programming — House Robber, Solving Questions with Brainpower
- Stack — Valid Parentheses, Decode String, Removing Stars from a String
- Greedy — Jump Game II, Gas Station, Candy, Assign Cookies
- Binary Search — Search Insert Position, Median of Two Sorted Arrays
- Bit Manipulation — Reverse Bits, Number of 1 Bits
- SQL — Combine Two Tables, Duplicate Emails, Employees Earning More Than Managers
- Math — Pascal's Triangle, Roman to Integer, Fizz Buzz
Clone the repo and browse solutions by problem number:
git clone https://github.com/omersaritoy/Leetcode.git
cd LeetcodeSolutions are self-contained in each folder. Open the relevant file in your preferred IDE.
- Problems are solved with a focus on clean, readable code
- Multiple language solutions may exist for the same problem
- SQL problems are included alongside algorithmic challenges
⭐ If you find this helpful, feel free to star the repo!