In this repository I store every passed solution I submited on LeetCode.
Each problem is presented in <problem_name>.md file in which there is description and solution.
For every task there is an Github issue. Each issue has difficulty label.
My LeetCode profile.
- Hard: 4
- Medium: 56
- Easy: 46
- Total: 106
- 3sum Closest
- Generate Parentheses
- Container with Most Water
- Sprial Matrix
- Remove Nth Node From End of List
- Letter Combinations of a Phone Number
- 3sum
- String to Integer
- Integer to Roman
- ZigZag Conversion
- Longest Palindromic Substring
- Longest Substring Without Repeating Characters
- Add Two Numbers
- Swap Nodes in Pairs
- Permutations
- Next Permutation
- Search for a Range
- Search in Rotated Sorted Array
- Valid Sudoku
- Binary Tree Level Order Traversal
- Group Anagrams
- Rotate Image
- Set Matrix Zeroes
- Subsets
- Validate Binary Search Tree
- Copy List with Random Pointer
- Kth Largest element in array
- Lowest Common Ancestor of a Binary Tree
- Number of Islands
- Product of Array Except Self
- Search a 2D Matrix II
- Word Break
- Word Ladder
- Binary Tree Right Side View
- Find All Duplicates in an Array
- Insert Delete GetRandom O(1)
- Jump Game
- Partition Labels
- Merge Intervals
- Permutation Sequence
- Rotate List
- Spiral Matrix II
- Unique Paths
- Minimum Path Sum
- Unique Paths II
- Multiply Strings
- Binary Tree Zigzag Level Order Traversal
- Construct Binary Tree from Preorder and Inorder Traversal
- Convert Sorted List to Binary Search Tree
- Flatten Binary Tree to Linked List
- Path Sum II
- Populating Next Right Pointers in Each Node
- Binary Tree Inorder Traversal
- Populating Next Right Pointers in Each Node II
- Search a 2D Matrix
- Construct Binary Tree from Inorder and Postorder Traversal
- Find All Anagrams in a String
- Implement strStr
- Longest Common Prefix
- Merge Two Sorted Lists
- Palindrome Number
- Plus One
- Remove Duplicates from Sorted Array
- Remove Duplicates from Sorted List
- Remove Element
- Reverse Integer
- Roman to Integer
- Same Tree
- Search Insert Position
- Two Sum
- Valid Parentheses
- Word Pattern
- Best Time to Buy and Sell Stock
- Linked List Cycle
- Merge Two Binary Trees
- Min Stack
- Pascal's Triangle ||
- Count Primes
- Intersection of Two Linked Lists
- Length of Last Word
- Maximum Subarray
- Merge Sorted Array
- Reverse Linked List
- Rotate array
- Symmetric Tree
- Two Sum II - Input array is sorted
- Climbing Stairs
- Binary Tree Level Order Traversal II
- Maximum Depth of Binary Tree
- Single Number
- Balanced Binary Tree
- Convert Sorted Array to Binary Search Tree
- Add Binary
- Path Sum
- Minimum Depth of Binary Tree
- Number of 1 bits
- Remove Linked Lists Elements
- Happy Number
- House Robber
- Excel Sheet Column Number
- Excel Sheet Column Title
- Majority Element