150+ DSA Interview Questions
150+ DSA Interview Questions
● Arrays
● Strings
● Linked Lists
● Heaps
● Graphs
● Dynamic Programming
● Bit Manipulation
● Greedy Algorithms
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 1 of 12
:
Arrays
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 2 of 12
:
18. Product of array except self.
Strings
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 3 of 12
:
34. Integer to Roman.
Linked Lists
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 4 of 12
:
49. Flatten a linked list.
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 5 of 12
:
65. Next greater element.
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 6 of 12
:
80. Maximum path sum in Binary Tree.
Heaps
Graphs
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 7 of 12
:
93. Topological sort.
Dynamic Programming
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 8 of 12
:
109. Subset Sum Problem.
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 9 of 12
:
125. Letter Combinations of a Phone Number.
Bit Manipulation
127. Find the single number in array where every element appears twice except one.
Greedy Algorithms
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 10 of 12
:
138. Fractional Knapsack Problem.
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 11 of 12
:
154. Power of Three/Four.
https://docs.google.com/document/d/1HawPiMsx-iHdlbrgDIHu-1Yplj6WrxLYaDXOSslgNqw/mobilebasic 30/04/25, 10 21 AM
Page 12 of 12
: