A collection of my solutions to various LeetCode problems, implemented in Python and Java.
- Two Sum (#1)
- Median of Two Sorted Arrays (#4)
- Container With Most Water (#11)
- Find First and Last Position (#34)
- Search Insert Position (#35)
- Sqrt(x) (#69)
View all binary search problems
- Combine Two Tables (#175)
- Second Highest Salary (#176)
- Nth Highest Salary (#177)
- Longest Palindromic Substring (#5)
- Regular Expression Matching (#10)
- Generate Parentheses (#22)
View all dynamic programming problems
- Clone Graph (#133)
- Course Schedule (#207)
- Course Schedule II (#210)
- Container With Most Water (#11)
- Jump Game II (#45)
- Jump Game (#55)
- Two Sum (#1)
- Longest Substring Without Repeating Characters (#3)
- Integer to Roman (#12)
- Add Two Numbers (#2)
- Reverse Integer (#7)
- Palindrome Number (#9)
- Valid Sudoku (#36)
- Rotate Image (#48)
- Spiral Matrix (#54)
- 3Sum (#15)
- 3Sum Closest (#16)
- 4Sum (#18)
- Valid Parentheses (#20)
- Longest Valid Parentheses (#32)
- Trapping Rain Water (#42)
- Longest Substring Without Repeating Characters (#3)
- Longest Palindromic Substring (#5)
- Zigzag Conversion (#6)
- Binary Tree Inorder Traversal (#94)
- Unique Binary Search Trees II (#95)
- Unique Binary Search Trees (#96)
To use this repository:
git clone https://github.com/ArmanBehnam/Leetcode.git
cd Leetcode
Feel free to open issues if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License - see the LICENSE file for details.