How to Think
How strong engineers approach any problem: read it, size it, brute-force it, find the pattern, optimise and explain. For DSA, system design and GenAI, with worked approaches.
27 lessons, 1 of them free.
Start Here
- How experts approach any problem: The thinking loop strong engineers use on every problem, from DSA rounds to system design and AI, walked through on one example.
DSA: How to Think
- Read the problem like an engineer (Pro): Restate it, pin the input and output, hunt the hidden constraints and solve tiny examples by hand before you write any code.
- Let the constraints choose your algorithm (Pro): Turn "1 ≤ n ≤ 10^5" into a target Big-O within seconds, using the 10^8 operations per second rule and a table you will memorise.
- Brute force first, on purpose (Pro): Why the slow, obvious solution is your most valuable first step, how to write and state it fast, and how it points at the optimal one.
- Spot the pattern from the signals (Pro): Match the words and shapes in a problem statement to the technique that fits, with a signal table, a decision flow and six practice problems.
- Optimise by finding the wasted work (Pro): Go from brute force to optimal with one question, "what am I recomputing?", and five standard fixes, each shown as before-and-after code.
- Edge cases, dry runs and testing (Pro): Catch your own bugs before the interviewer does: an edge case checklist, line-by-line dry runs with a variable table, off-by-one traps and fast tests.
DSA: Worked Approaches
- Worked approaches: arrays and strings (Pro): Two Sum, Longest Substring Without Repeating Characters and Merge Intervals, solved slowly with the full six-step thinking process.
- Worked approaches: trees and graphs (Pro): Number of Islands, Lowest Common Ancestor and Course Schedule, solved with the full thinking process, from 'what is a node here?' to the final follow-up.
- Worked approaches: dynamic programming (Pro): Climbing Stairs, House Robber, Coin Change and Longest Common Subsequence, each grown from a recursion tree into a memo and then a table.
- Worked approaches: designing data structures (Pro): LRU Cache, Min Stack and Top K Frequent Elements, solved by asking which operations must be fast and picking a structure for each one.
System Design: How to Think
- A framework for any "design X" question (Pro): Eight steps that turn "design a notification system" into a clear, defended design in 45 minutes, and what interviewers listen for at each step.
- Back-of-the-envelope estimation, step by step (Pro): Turn "10 million users" into requests per second, storage, bandwidth and cache size in under five minutes, with three fully worked examples.
- Thinking in trade-offs (Pro): The seven trade-offs behind almost every design choice, a decision table for each, and the exact words to defend a choice in an interview.
- Worked design: live order tracking for food delivery (Pro): The whole approach on one real question: live order tracking for a food-delivery app, from requirements and numbers to live location, geo-indexing, the dinner peak and failures.
GenAI & ML: How to Think
- Framing an AI/ML problem before you build (Pro): Before any model: decide whether AI is needed, define the task and the metric, check your data, build a baseline, and set budgets for cost, latency and risk.
- Prompting, RAG, tools, agents or fine-tuning? (Pro): A decision ladder for GenAI approaches: the signal that justifies each step up, what each costs to build and run, and how to evaluate it.
- Worked design: a support assistant for a bank's credit cards (Pro): The full GenAI design approach on one question: a credit-card support assistant for an Indian bank, with RAG, authenticated tools, guardrails, evals, cost and rollout.
In the Interview
- Thinking out loud (Pro): Two transcripts of the same interview, one silent and one narrated, plus the phrases, timing and trade-off talk that turn your thinking into marks.
- What to do when you are stuck (Pro): Ten concrete moves that get you unstuck, and a full stuck-to-unstuck story on a problem where the obvious pattern fails.
- Debugging under pressure (Pro): A calm, repeatable way to find bugs in live interviews and online assessments, the bug classes that cause most failures, and OA tactics for HackerRank and CodeSignal style tests.
Behavioral Interviews
- What behavioral rounds really test (Pro): The signals interviewers score in a behavioral or HR round, the red flags that sink good candidates, and how expectations change from freshers to experienced engineers.
- The STAR method, with weak vs strong answers (Pro): Situation, Task, Action, Result (plus Learning): how to structure any "tell me about a time" answer, where to spend your time, and the same story told badly and well.
- Build your story bank (Pro): Find six to eight true stories in your projects, internships and college life, map each to the competencies it proves, and fill in a template you can rehearse from.
- The common questions, answered well (Pro): Tell me about yourself, conflict, failure, leadership without authority, a tight deadline and why this company: what each one listens for, with a weak and a strong sample answer.
- Amazon's Leadership Principles round (Pro): How Amazon uses its Leadership Principles in interviews, eight principles explained in plain words with example questions and fresher-friendly story fits, and how to stretch your bank across them.
- The HR round in Indian placements (Pro): What the HR round checks in campus and lateral hiring, and honest, practical answers on why we should hire you, relocation, bonds and service agreements, gaps, backlogs, salary and negotiation.