You can access the distribution details by navigating to My Print Books(POD) > Distribution

Add a Review

Think Before You Code

Anuj Agrawal
Type: Print Book
Genre: Engineering, Job & Career
Language: English
Price: ₹399 + shipping
This book ships within India only.
Price: ₹399 + shipping
Dispatched in 5-7 business days.
Shipping Time Extra

Description

You studied the algorithms. You solved a hundred problems. Then the interviewer hands you one you have never seen, and your mind goes blank.

That freeze is not a knowledge gap. It is a recognition gap — and almost no one trains it.

Most interview prep teaches you to memorize solutions to labeled problems. You practice the sliding window chapter, so every problem in front of you is a sliding window problem. The label is handed to you. But a real interview quietly removes the label. It describes a delivery route, a stream of numbers, a game board — and your job is to decide, alone, which pattern it belongs to. That is a different skill from solving, and it is the one this book trains.

Think Before You Code is built around a three-question diagnosis you run before writing a single line: which pattern is this, why, and what is the one guiding question that cracks it open. Each chapter builds a pattern from its fundamentals, walks through a problem the way an experienced engineer actually thinks out loud, then gives you a graded ladder of practice problems with the label hidden — so you train recognition instead of recall.

Inside, you will find:

Every core pattern that shows up in technical interviews — sliding window, two pointers, hashing, binary search, trees and graphs, backtracking, dynamic programming, greedy, intervals, and more

A repeatable diagnosis method for reading an unfamiliar prompt and naming its pattern before you code

Practice ladders with the pattern hidden, so you rehearse the exact moment that breaks candidates in real interviews

A master decision tree tying every pattern together, plus mixed-diagnosis drills and full mock walkthroughs

The interviewer's-eye view: what separates a candidate who freezes from one who calmly narrates their way to a solution, written by an engineering leader who has sat on both sides of the table

This is not another list of five hundred problems to memorize. It is the missing habit that turns everything you already know into an answer you can produce under pressure — the difference between a candidate who has studied and one who is actually ready.

If you have done the practice and still freeze on anything new, this book teaches you the one skill that fixes it: naming the problem before you solve it.

About the Author

Anuj Agrawal has spent more than twenty years building software and the teams that build it, across
companies including **Cisco**, **Oracle**, and **Persistent Systems**, after an education at **IIT
Bombay**. He has led
engineering organizations of dozens of people, shipped products used at scale, and, along the way, sat on
the other side of the interview table for hundreds of candidates.

That last part is why this book exists. After years of watching strong, well-prepared engineers freeze on
problems they had every ability to solve, he became convinced that the missing skill was almost never
knowledge. It was recognition: the habit of reading a problem, naming the pattern, and forming a plan
before writing any code. The candidates who got the offer were rarely the ones who knew the most
algorithms; they were the ones who could diagnose a strange problem calmly and out loud.

This book is his attempt to teach that habit directly, the way he wishes someone had taught it to him: not
as a pile of solutions to memorize, but as a method to recognize. The three-question diagnosis, the
signals, and the decision trees are the same tools he looks for when he is the one asking the questions.

He hopes it helps you walk into your next interview with a plan instead of a hope. Good luck, and think
before you code.

Book Details

Number of Pages: 200
Dimensions: 6.00"x9.00"
Interior Pages: B&W
Binding: Paperback (Perfect Binding)
Availability: In Stock (Print on Demand)

Ratings & Reviews

Think Before You Code

Think Before You Code

(Not Available)

Review This Book

Write your thoughts about this book.

Currently there are no reviews available for this book.

Be the first one to write a review for the book Think Before You Code.

Other Books in Engineering, Job & Career

Shop with confidence

Safe and secured checkout, payments powered by Razorpay. Pay with Credit/Debit Cards, Net Banking, Wallets, UPI or via bank account transfer and Cheque/DD. Payment Option FAQs.