Top Interview Problems Asked in 2024 (Topic Wise)
In this post, we present a list of the latest asked data structures and algorithms (DSA) coding questions to help you prepare for interviews at leading tech companies like Meta, Google, Amazon, Apple, Microsoft, etc. This list helps you to cover an extensive variety of DSA Coding questions topic-wise.
Arrays
- Move All Zeroes to End
- Stock Buy and Sell
- Triplet Sum in Array
- Union of Arrays with Duplicates
- Maximum Product Subarray
- Next Permutation
- Subarrays with sum K
- Trapping Rain Water
Strings
- Roman Number to Integer
- Merge two strings
- Anagram
- Print Anagrams Together
- Group Shifted String
- Longest substring with distinct characters
- Smallest window containing all characters
Searching/Sorting
- Overlapping Intervals
- Majority Element
- Search in Rotated Sorted Array
- Top K Frequent in Array
- Median of 2 Sorted Arrays of Different Sizes
- Split Array Largest Sum
- Koko Eating Bananas
- Allocate Minimum Pages
Matrix
- Search in a Row-Column sorted matrix
- Spirally traversing a matrix
- Kth element in Matrix
- Is Valid Sudoku
- Solve the Sudoku
Stack/Queue
Linked List
- Delete in a Singly Linked List
- Kth from End of Linked List
- Reverse a Linked List in Groups
- Add Number Linked Lists
- Merge K sorted linked lists
- LRU Cache
Recursion/Backtracking
Tree
- Level order traversal
- Root to leaf path sum
- Left View of Binary Tree
- Top View of Binary Tree
- Tree Boundary Traversal
- Serialize and Deserialize a binary tree
- Nodes at given distance in binary tree
Dynamic Programming
- Jump Game
- Ways to Reach the n'th Stair
- Minimum Window Substring
- Longest Increasing Subsequence
- Paint N House
- House Robber
- Coin Change (Count Ways)
- Unique Paths in a Grid
- RegEx matching
- Matrix Chain Multiplication
Greedy
Heap
Graph
- Rotten Oranges
- Cycle in a Directed Graph
- Bipartite Graph
- Course Schedule
- Find the number of islands
- Replace O's with X's
- Flood fill Algorithm
- Alien Dictionary
- Word Ladder I
- Word Ladder II
Bit Manipulation
Mathematical
Reference Link
Top Interview Problems Asked in 2024 (Company Wise)