TOP INTERVIEW QUESTIONS
Easy Level Collection
1. Array
- Remove Duplicates from Sorted Array - Cpp Solution
- Best Time to Buy and Sell Stock - Cpp Solution
- Best Time to Buy and Sell Stock II - Cpp Solution
- Rotate Array - Cpp Solution
- Contains Duplicate - Cpp Solution
- Single Number - Cpp Solution
- Intersection of Two Arrays II - Cpp Solution
- Plus One - Cpp Solution
- Move Zeroes - Cpp Solution
- Two Sum - Cpp Solution
- Valid Sudoku - Cpp Solution
- Rotate Image - Cpp Solution
- Max-Increase-to-keep-city-skyline - C++ Solution
- Subrectangle Queries - C++ Solutoin
- Minimum Number Of Operations to Move Balls to Each Box - C++ Solution
- Group People By Group Size - C++ Solution
- Summary Ranges - C++ Solution
- Next Permutation - C++ Solution
- Sliding Window Maximum - C++ Solution
2. Strings
- Reverse String - Cpp Solution
- First Unique Character in a String - Cpp Solution
- Valid Anagram - Cpp Solution
- Valid Palindrome - Cpp Solution
- String to Integer (atoi) - Cpp Solution
- Implement strStr() - Cpp Solution
- Longest Common Prefix - Cpp Solution
3. Linked List
- Delete Node in a Linked List - Cpp Solution
- Remove Nth Node From End of List - Cpp Solution
- Reverse Linked List - Cpp Solution
- Merge Two Sorted Lists - Cpp Solution
- Palindrome Linked List - Cpp Solution
- Linked List Cycle - Cpp Solution
- Linked List Cycle II - Cpp Solution
4. Trees
- Maximum Depth of Binary Tree - Cpp Solution
- Validate Binary Search Tree - Cpp Solution
- Symmetric Tree - Cpp Solution
- Binary Tree Level Order Traversal - Cpp Solution
- Convert Sorted Array to Binary Search Tree - Cpp Solution
5. Sorting and Searching
6. Dynamic Programming
- Climbing Stairs - Cpp Solution
- Best Time to Buy and Sell Stock - Cpp Solution
- Maximum Subarray - Cpp Solution
- House Robber - Cpp Solution
- Longest Common Subsequence - Cpp Solution
7. Design
8. Math
- Fizz Buzz - Cpp Solution
- Count Primes - Cpp Solution
- Power of Three - Cpp Solution
- Power of Four - Cpp Solution
- Roman to Integer - Cpp Solution
9. Others
- Number of 1 Bits - Cpp Solution
- Hamming Distance - Cpp Solution
- Reverse Bits - Cpp Solution
- Pascal’s Triangle - Cpp Solution
- Valid Parentheses - Cpp Solution
- Missing Number - Cpp Solution
Medium Level Collection
1. Array
- 4Sum - Cpp Solution
- 3Sum - Cpp Solution
- Set Matrix Zeroes - Cpp Solution
- Group Anagrams - Cpp Solution
- Longest Substring Without Repeating Characters - Cpp Solution
- Longest Palindromic Substring - Cpp Solution
- Increasing Triplet Subsequence - Cpp Solution
2. Linked List
- Add Two Numbers - Cpp Solution
- Odd Even Linked List - Cpp Solution
- Intersection of Two Linked Lists - Cpp Solution
3. Trees & Graphs
- Binary Tree Inorder Traversal - Cpp Solution
- Binary Tree Zigzag Level Order Traversal - Cpp Solution
- Construct Binary Tree from Preorder and Inorder Traversal - Cpp Solution
- Populating Next Right Pointers in Each Node - Cpp Solution
- Kth Smallest Element in a BST - Cpp Solution
- Number of Islands - Cpp Solution
- Minimum Number of Vertices to Reach All Nodes - Cpp Solution
4. Backtracking
- Letter Combinations of a Phone Number - Cpp Solution
- Generate Parentheses - Cpp Solution
- Permutations - Cpp Solution
- Permutations II - Cpp Solution
- Subsets - Cpp Solution
- Word Search - Cpp Solution
5. Sorting and Searching
- Sort Colors - Cpp Solution
- Top K Frequent Elements - Cpp Solution
- Kth Largest Element in an Array - Cpp Solution
- Find Peak Element - Cpp Solution
- Search for a Range - Cpp Solution
- Merge Intervals - Cpp Solution
- Search in Rotated Sorted Array - Cpp Solution
- Search a 2D Matrix II - Cpp Solution
- Find First and Last Position of Element in Sorted Array - Cpp Solution
6. Dynamic Programming
- Jump Game - Cpp Solution
- Unique Paths - Cpp Solution
- Coin Change - Cpp Solution
- Longest Increasing Subsequence - Cpp Solution
- Word Break - Cpp Solution
- Super Egg Drop - Cpp Solution
7. Design
8. Math
- Happy Number - Cpp Solution
- Factorial Trailing Zeroes - Cpp Solution
- Excel Sheet Column Number - Cpp Solution
- Pow(x, n) - Cpp Solution
- Sqrt(x) - Cpp Solution
- Divide Two Integers - Cpp Solution
- Fraction to Recurring Decimal - Cpp Solution
9. Others
- Sum of Two Integers - Cpp Solution
- Evaluate Reverse Polish Notation - Cpp Solution
- Majority Element - Cpp Solution
- Majority Element II - Cpp Solution
- Task Scheduler - Cpp Solution
- ZigZag Conversion - Cpp Solution
- Repeated DNA Sequences - Cpp Solution
Hard Level Collection
1. Array
- Product of Array Except Self - Cpp Solution
- Minimum Number of Days to Eat N Oranges - Cpp Solution
- First Missing Positive - Cpp Solution
- - Cpp Solution
- - Cpp Solution
- - Cpp Solution
- - Cpp Solution
- - Cpp Solution
- - Cpp Solution
- - Cpp Solution
- - Cpp Solution