This repository contains my solutions to various coding problems on LeetCode. Each file represents a specific problem, and the solutions are implemented in Python.
- Two Sum
- Add Two Numbers
- Longest Substring Without Repeating Characters
- Palindrome Number
- Container With Most Water
- Integer to Roman
- Roman to Integer
- Longest Common Prefix
- Three Sum
- Remove Nth Node From End of List
- Valid Parentheses
- Merge Two Sorted Lists
- Generate Parentheses
- Merge k Sorted Lists
- Remove Duplicates from Sorted Array
- Remove Element
- Find the Index of the First Occurrence in String
- Search in Rotated Sorted Array
- Search Insert Position
- Valid Sudoku
- Trapping Rain Water
- Group Anagrams
- Maximum Subarray
- Spiral Matrix
- Length of Last Word
- Spiral Matrix II
- Rotate List
- Sqrt(x)
- Valid Palindrome
- Longest Consecutive Sequence
- Two Sum II - Input Array is Sorted
- Contains Duplicate
- Product of Array Except Self
- Valid Anagram
- Top K Frequent Elements
Feel free to explore the solutions, review the code, and suggest improvements. Happy coding!