This repository contains few leetcode problems and solution, each solution will contain both explanation and code in javascript.
- Two Sum
- Two Sum 2
- Add Two Numbers
- Longest Substring Without Repeating Characters
- Verifying an Alien Dictionary
- Minimum Remove to Make Valid Parentheses
- 3Sum
- Remove Duplicates from Sorted Array
- Remove Duplicates from Sorted Array 2
- Add Binary
- Merge Two Sorted Lists
- Merge Sorted Array
- Search in rotated sorted array
- Find First and Last Position of Element in Sorted Array
- Letter Combinations of a Phone Number
- Intersection of Two Arrays
- Intersection of Two Arrays 2
- Permutations
- Permutations-2
- Regular Expression Matching
- Flatten Binary Tree to Linked List
- Binary Tree Maximum Path Sum
- Binary Tree Paths
- Shortest Distance from All Buildings
- Binary Tree Vertical Order Traversal
- Longest Palindromic Substring
- Longest Common Subsequence
- Longest Common Prefix
- Longest Valid Parentheses
- Valid Parenthesis String
- Valid Parentheses
- Decode Ways
- Best Time to Buy and Sell Stock
- Best Time to Buy and Sell Stock II
- Robot Bounded In Circle
- LRU Cache
- Number of Islands
- Merge Intervals
- Valid Palindrome