TechnicalNº 013rd edition · Updated Sept 2026
Twenty-four recurring patterns, worked line by line, so a new problem looks like one you have already solved. — Gyaanshaala Editorial
Most candidates grind hundreds of problems and still freeze in the room. This guide works the other way round: learn the pattern, then see it applied to the problems interviewers actually set. Every solution is written out in full — the first idea, why it fails, and the one that holds up — with complexity argued rather than asserted.
Constraints, invariants and the five questions to ask before writing code.
The sliding-window family and when a second pointer beats a hash map.
BFS, DFS and the traversal that makes the proof obvious.
State, transition, base case — derived in that order, every time.
Thinking aloud, recovering from a wrong start, and the last five minutes.
Gyaanshaala Editorial
Interview preparation desk
Written and reviewed by the Gyaanshaala editorial desk. Author credits are set per title in the admin once the book is published.