DSA Interview Questions Topic Wise
DSA Interview Questions Topic Wise
1. Arrays
- Two Sum
- Best Time to Buy and Sell Stock
- Majority Element (Moore's Voting)
- Kadane's Algorithm (Max Subarray)
- Merge Intervals
- Move Zeroes
- Trapping Rain Water
- Rotate Array
- Product of Array Except Self
- Subarray Sum Equals K
2. Strings
3. Linked List
4. Binary Trees
- Validate BST
- Insert/Delete in BST
- Kth Smallest Element in BST
- LCA in BST
- Convert Sorted Array to BST
- Range Sum of BST
- BST Iterator
- Recover BST (2 nodes swapped)
6. Math
- Sieve of Eratosthenes
- GCD using Euclidean Algorithm
- Reverse Integer
- Palindrome Number
- Pow(x, n) - Fast Exponentiation
- Excel Column Title / Number
- Count Primes
- Missing and Repeating Number
- Divide Two Integers (without /, %, *)
- Add Binary Strings
- Subsets / Subsets II
- Permutations / Permutations II
- N-Queens
- Sudoku Solver
- Combination Sum I / II
- Word Search
- Generate Parentheses
- Rat in a Maze
- Palindrome Partitioning
- Letter Combinations of Phone Number
- Valid Parentheses
- Min Stack
- Daily Temperatures
- Next Greater Element
- Evaluate Reverse Polish Notation
- Implement Queue using Stack
- Sliding Window Maximum
- LRU Cache
- Asteroid Collision
- Stack Span Problem
10. Graphs
- Implement Trie
- Word Search II
- Longest Prefix Matching
- Suffix Trie / Array (Advanced)
- Rabin-Karp
- KMP Algorithm
- Aho-Corasick (Advanced)
- Auto-complete System
- Replace Words in Sentence
- Word Break I / II