25 Important Questions of DSA
Why waste hours grinding 500+ problems when 25 can cover it all? These 25 DSA
questions capture almost every pattern asked in interviews and yes, LeetCode
backs this too.
Let’s connect on Linkedin: https://www.linkedin.com/in/yashudeveloper/
er
Arrays / Two Pointers / Hashing
1.3Sum: https://leetcode.com/problems/3sum/description/
2. Container With Most Water:
op
https://leetcode.com/problems/container-with-most-water/description/
3. Longest Consecutive Sequence:
https://leetcode.com/problems/longest-consecutive-sequence/description/
el
Strings
4. Longest Substring Without Repeating Characters:
ev
https://leetcode.com/problems/longest-substring-without-repeating-characters/descri
ption/
5. Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/description/
ud
Dynamic Programming (DP)
6. Climbing Stairs: https://leetcode.com/problems/climbing-stairs/description/
sh
7. House Robber: https://leetcode.com/problems/house-robber/description/
8. Longest Palindromic Substring
https://leetcode.com/problems/longest-palindromic-substring/description/
9. Coin Change: https://leetcode.com/problems/coin-change/description/
ya
10. Partition Equal Subset Sum:
https://leetcode.com/problems/partition-equal-subset-sum/description/
Trees / Binary Trees / BST
11. Binary Tree Level Order Traversal:
https://leetcode.com/problems/binary-tree-level-order-traversal/description/
12. Diameter of Binary Tree:
https://leetcode.com/problems/diameter-of-binary-tree/description/
13. Lowest Common Ancestor of a BST:
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/des
cription/
Backtracking
14. Subsets: https://leetcode.com/problems/subsets/description/
15. Combination Sum: https://leetcode.com/problems/combination-sum/description/
16. Word Search: https://leetcode.com/problems/word-search/description/
er
Linked List
17. Reverse Linked List:
op
https://leetcode.com/problems/reverse-linked-list/description/
18. Linked List Cycle: https://leetcode.com/problems/linked-list-cycle/description/
19. Merge Two Sorted Lists?
https://leetcode.com/problems/merge-two-sorted-lists/description/
el
Stack
ev
20. Valid Parentheses: https://leetcode.com/problems/valid-parentheses/description/
21. Daily Temperatures:
https://leetcode.com/problems/daily-temperatures/description/
ud
Graphs / BFS / DFS / Union-Find
22. Number of Islands: https://leetcode.com/problems/number-of-islands/description/
sh
23. Clone Graph: https://leetcode.com/problems/clone-graph/description/
24. Course Schedule: https://leetcode.com/problems/course-schedule/description/
25. Redundant Connection:
https://leetcode.com/problems/redundant-connection/description/
ya