TGViewer
Coding Interview Resources Coding Interview Resources @crackingthecodinginterview ยท 52.1K subscribers
Post #1145 7.11K
Here are the most asked DSA questions to ace your next interview


โžค ๐—”๐—ฟ๐—ฟ๐—ฎ๐˜†๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐˜๐—ฟ๐—ถ๐—ป๐—ด๐˜€:
1. Find the maximum sum subarray.
2. Find all substrings that are palindromes.
3. Implement the "two sum" problem.
4. Implement Kadane's algorithm for maximum subarray sum.
5. Find the missing number in an array of integers.
6. Merge two sorted arrays into one sorted array.
7. Check if a string is a palindrome.
8. Find the first non-repeating character in a string.
9. Write a program to remove duplicates from a sorted array.

โžค ๐—Ÿ๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ ๐—Ÿ๐—ถ๐˜€๐˜๐˜€:
10. Reverse a linked list.
11. Detect a cycle in a linked list.
12. Find the middle of a linked list.
13. Merge two sorted linked lists.
14. Implement a stack using linked list.
15. Find the intersection point of two linked lists.

โžค ๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ค๐˜‚๐—ฒ๐˜‚๐—ฒ๐˜€:
16. Implement a stack using an array.
17. Implement a stack that supports push, pop, top, and retrieving the minimum element.
18. Implement a circular queue.
19. Design a max stack that supports push, pop, top, retrieve maximum element.
20. Design a queue using stacks.

โžค ๐—ง๐—ฟ๐—ฒ๐—ฒ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—•๐—ถ๐—ป๐—ฎ๐—ฟ๐˜† ๐—ฆ๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต ๐—ง๐—ฟ๐—ฒ๐—ฒ๐˜€:
21. Find the height of a binary tree.
22. Find the lowest common ancestor of two nodes in a binary tree.
23. Validate if a binary tree is a valid binary search tree.
24. Serialize and deserialize a binary tree.
25. Implement an inorder traversal of a binary tree.
26. Find the diameter of a binary tree.
27. Convert a binary tree to its mirror tree.

โžค ๐—š๐—ฟ๐—ฎ๐—ฝ๐—ต๐˜€:
28. Implement depth-first search (DFS).
29. Implement breadth-first search (BFS).
30. Find the shortest path between two nodes in an unweighted graph.
31. Detect a cycle in an undirected graph using DFS.
32. Check if a graph is bipartite.
33. Find the number of connected components in an undirected graph.
34. Find bridges in a graph.

โžค ๐—ฆ๐—ผ๐—ฟ๐˜๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต๐—ถ๐—ป๐—ด:
35. Implement (bubble, insertion, selection, merge) sort.
36. Implement quicksort.
37. Implement binary search.
38. Implement interpolation search.
39. Find the kth smallest element in an array.
40. Given an array of integers, count the number of inversions it has. An inversion occurs when two elements in the array are out of order.

Best DSA RESOURCES: https://topmate.io/coding/886874

All the best ๐Ÿ‘๐Ÿ‘
  • ๐Ÿ‘ 11
  • โค 4
  • ๐Ÿ‘ 1
More from @crackingthecodinginterview
  1. Oct 16, 2026๐——๐—ฎ๐˜๐—ฎ ๐˜€๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ช๐—ถ๐˜๐—ต ๐—”๐—œ๐Ÿ˜ Future Ready Data Scienโ€ฆ
  2. Oct 16, 2026If you're working with data pipelines, these repositories are very useful: ๐Ÿš€๐Ÿ“Š ibis: A Pyโ€ฆ
  3. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  4. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  5. Oct 9, 2026๐Ÿ”ฅ SQL Interview Case Studies (Advanced Business Scenarios) ๐Ÿ’ฏ ๐Ÿง  Case Study 1: Find Repeaโ€ฆ
  6. Oct 9, 2026๐Ÿ‡ฎ๐Ÿ‡ณ ๐—š๐—ข๐—ฉ๐—˜๐—ฅ๐—ก๐— ๐—˜๐—ก๐—ง ๐—ข๐—™ ๐—œ๐—ก๐——๐—œ๐—” โ€” ๐—”๐—œ๐—–๐—ง๐—˜ ๐—œ๐—ก๐—ง๐—˜๐—ฅ๐—ก๐—ฆ๐—›๐—œ๐—ฃ๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐Ÿš€โ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’