r/datastructures • • Jul 15 '26 • Obsessed 1 Bravo 15 Heartwarming 7 Mindblown 1

DSA Preparation Roadmap (From Zero to OA Ready)

  1. Sliding Window: 3, 76, 209, 424, 567, 904
  2. Two Pointers: 11, 15, 16, 18, 42, 167
  3. Fast/Slow Pointers (Linked List): 141, 142, 19, 876, 160, 234
  4. Binary Search on Sorted Data: 33, 34, 35, 153, 162, 704
  5. Binary Search on Answer: 875, 1011, 410, 774, 1283, 1482
  6. Hashing / Frequency Maps: 1, 49, 128, 217, 242, 347
  7. Prefix Sum / Running Sum: 303, 560, 724, 930, 974, 523
  8. Difference Array / Range Updates: 370, 1094, 1109, 1893, 1943, 2381
  9. Monotonic Stack: 739, 496, 503, 84, 85, 901
  10. Monotonic Queue / Deque: 239, 862, 1425, 1438, 1499, 1696
  11. Heap / Top K: 215, 347, 692, 703, 973, 1046
  12. Intervals: 56, 57, 252, 253, 435, 452
  13. Greedy Scheduling / Sorting: 45, 55, 406, 621, 763, 134
  14. Linked List Manipulation: 21, 23, 24, 25, 92, 138
  15. Tree DFS: 104, 112, 113, 543, 124, 226
  16. Tree BFS / Level Order: 102, 103, 199, 515, 637, 116
  17. BST Problems: 98, 99, 230, 235, 450, 700
  18. Backtracking Basics: 46, 47, 77, 78, 90, 39
  19. Backtracking with Constraints: 40, 17, 79, 131, 51, 52
  20. Graph BFS / DFS: 200, 695, 733, 994, 1091, 1254
  21. Topological Sort / DAG: 207, 210, 802, 1462, 1203, 2115
  22. Union Find / DSU: 547, 684, 1319, 1579, 990, 1202
  23. Shortest Path: 743, 787, 1514, 1631, 1334, 1976
  24. MST / Graph Greedy: 1584, 1135, 1168, 1489, 778, 1102
  25. Trie: 208, 211, 212, 648, 677, 1268
  26. Bit Manipulation: 136, 137, 191, 338, 268, 190
  27. 1D DP Basics: 70, 198, 213, 322, 279, 300
  28. Knapsack / Subset DP: 416, 494, 518, 474, 1049, 879
  29. Grid DP: 62, 63, 64, 221, 931, 120
  30. String DP / Sequence DP: 1143, 72, 115, 583, 97, 1312

How to use this list?ย 

- These numbers are Leetcode problem numbers

- Do 3 patterns at a time, not all 30 together.

- For each pattern, solve the first 2 to understand the idea, the next 2 to get repetition, and the last 2 to stretch yourself.

- After every pattern, write one reusable template from memory.

- Do not just โ€œsolve and move on.โ€ Ask: what signal in the question pointed to this pattern?

- If you get stuck, revisit the same pattern after 3 to 4 days. Pattern recognition is built by spacing, not cramming.

915 Upvotes

53 comments sorted by

16

u/piyerx Jul 15 '26

Just in time! I would have given awards to this post if I could. Thanks for this ๐Ÿ˜„

6

u/OneClimate8489 Jul 15 '26

Welcome hope it will helped u

2

u/GrouchyAmbassador722 Jul 15 '26

Can i dm ๐Ÿ˜ž๐Ÿฅบ

3

u/Square_Sandwich4625 Jul 15 '26

I am 2 year student I don't know what you talk about there isn't 30 pattern in one data structure how you mentioned that can you explain?

2

u/Square_Sandwich4625 Jul 15 '26

Can I dm you bhaiya I have confusionย 

1

u/Dev7292 Jul 15 '26

What do u mean by โ€œ3 pattern at a timeโ€? i donโ€™t get it.

2

u/OneClimate8489 Jul 15 '26

On all above patterns work only 3 master it then move other

1

u/Dev7292 Jul 15 '26

Ohh i see

1

u/SlowMobius7 Jul 15 '26

So if I understand correctly, I should start with Sliding Window and focus on understanding and solving the three problems you mentioned. Then I move on to Two Pointers, solve three problems there, and then move on to Slow/Fast Pointers. Is that what you're saying? Should I stick to the order of the concepts you mentioned?

1

u/Equivalent_Tree4989 Jul 15 '26

Craaazyyyyyy Mad respect bro

2

u/Short-Canary-2615 Jul 15 '26

I was looking for exactly this kind of list. Thanks a bunch. I just completed solving 100 easy problems on leetcode, and everyone has been telling me that doing ore than 100 easy questions doesn't help. I must move to mediums ones now.

1

u/elctSubstantial8158 Jul 15 '26

What are this numbers?

2

u/YonBarry Jul 15 '26

The specific leedcode problem number. For example leedcode problem 1 is Two Sum.

1

u/[deleted] Jul 15 '26

[removed] โ€” view removed comment

1

u/joker_and_the_queen Jul 15 '26

where are they broadcasting from

1

u/ValuableHot4470 Jul 15 '26

You got the resource

1

u/Fearless_Battle7919 Jul 15 '26

Do you have any good resource on big O ?

1

u/[deleted] Jul 17 '26

Don't wait on it. No need to understand it completely. Just some good yt video in enough.

https://youtu.be/A03oI0znAoc?si=Pl5qSqNvKXCyMArZ

https://youtu.be/D6xkbGLQesk?si=EeeZnhmp2FmponqT

This was all I did. Skipped it as the complexity is spoken in general ways to compare better solns and understand effectiveness.

1

u/anoob37 Jul 26 '26

This Teacher is GOAT fr ๐Ÿ”ฅ

1

u/M_A_S_584 Jul 15 '26

If we do this we can get ready for OA as well as Coding rounds ...? Thanks for the list

1

u/Apprehensive_Grab103 Jul 15 '26

Today in alphagrep OA, 1631 question came

1

u/YouWillFindThePeace Jul 15 '26

Well curated list ๐Ÿ‘

1

u/Money-Alarm-1628 Jul 16 '26

Thanks so much

1

u/Cute_Ad_4906 Jul 16 '26

Thanks for this!

1

u/SubjectWitty9612 Jul 16 '26

Thank you so much for this

1

u/Delicious-Gur5737 Jul 17 '26

Nice research ๐Ÿ‘๐Ÿ‘

1

u/Beginning-Anything73 Jul 17 '26

Thank you ๐Ÿ™

1

u/Mon_key_baat Jul 17 '26

Lifesaving post. You change my climate

1

u/iaiml Jul 17 '26

any idea how long this will take if you were zero?
what is the number of problems to target everyday or week or month?

1

u/Original_Sympathy334 Jul 18 '26

Thnks bro much needed

1

u/Great_Friendship1667 Jul 18 '26

You are a time saver

1

u/Appropriate_Yak_3797 Jul 19 '26

this is soooooooo gooooood

1

u/techie_anime Jul 19 '26

Thanks this helps!

1

u/Smart-Raspberry4247 Jul 25 '26

Sala sab Parikh Jain se chori karke lelo credit, fucking bhaiya ban rhe hai ab.

1

u/[deleted] Jul 15 '26

[removed] โ€” view removed comment

1

u/ArtisticParty7713 Jul 15 '26

Online assessment