u/Grouchy_Turnover7204

▲ 40 r/LeetcodeDesi+1 crossposts

Trees and Graphs feel much more intuitive than Arrays

Is it normal to struggle with array problems while being comfortable with trees and graphs?

For some reason, intuition for non-linear data structures comes much more naturally to me. With trees/graphs, I can often reason my way toward a solution using traversal/state/relationships. It feels like I am applying the concepts I have studied.

But with many array problems, especially medium-level ones, it often feels like I’m expected to already know the trick or pattern beforehand. Unless it falls into a well-known category (sliding window, two pointers, prefix sums, etc.), I genuinely feel like I would never have arrived at the solution on my own. It all feels absurd and luck heavy.

Did anyone else experience this? How did you develop intuition for arrays beyond memorising patterns? Any help will be appreciated. Thanks.

reddit.com
u/Grouchy_Turnover7204 — 13 days ago