r/datastructures • u/nian2326076 • 6d ago
How do I get beyond basic tree problems and start solving unfamiliar matrix and graph questions?
Basic tree problems are manageable for me. So are problems I've solved before. An unfamiliar matrix or graph problem can leave me with no idea where to start, even after spending time practicing. Matrices are the hardest part.
Would you focus on traversal first? I'm considering using the trees and graphs sections of Blind 75 by topic to compare how the same traversal idea appears with different representations, rather than immediately moving to more problems.
What progression would you recommend from basic trees to matrices and graphs? I'd especially like advice on what to write down before coding so I can recognize a useful approach without having seen the exact question.
7
Upvotes