Interview preparation guides

Short, practical lessons for every interview format SmartIntervu practises. Each one explains how the interview runs and how answers are scored, works through examples, and ends with practice questions you can take with the AI interviewer.

Coding interviews

All coding lessons
  • Coding Interviews: A Repeatable Approach

    Run one five-step method with a 45-minute time budget on any coding problem, pick the target complexity from the constraints, and narrate, test and use hints in the way the report scores.

    8 min read

  • AI-Assisted Coding Interviews: Directing, Checking and Owning the Code

    Know how coding interviews that allow an AI assistant tend to run and what they grade, follow a seven-step workflow for prompting, reading and verifying generated code, and avoid the habits that sink candidates.

    8 min read

  • Two Pointers

    Recognize when sorted input, in-place edits or a linked list call for two pointers, then apply the opposite-ends, reader-writer and fast-slow shapes and say why each pointer move is safe.

    8 min read

  • Sliding Window

    Spot contiguous-range problems, run fixed and variable windows from one template, decide where to record the answer, and explain why the window breaks once values can be negative.

    8 min read

  • Binary Search

    Write one boundary-search template without off-by-one bugs, derive exact, first, last and count searches from it, and binary search on the answer and on rotated arrays.

    9 min read

  • Hash Maps and Prefix Sums

    Use maps for lookup, counting and grouping, build prefix sums for constant-time range queries, and count or find target-sum subarrays with a map of earlier prefixes, negatives included.

    8 min read

  • Stacks and Monotonic Stacks

    Solve nested-structure problems with a stack, find the next greater or smaller element for every position in one pass, and explain the push-once, pop-once reason it runs in linear time.

    8 min read

  • Heaps and Top K

    Recognize when a problem needs a heap, code its four shapes (top k, k-way merge, two heaps for a running median, scheduling by earliest end) and say when a plain sort or quickselect is the better answer.

    9 min read

  • Trees

    Decide whether information flows down a tree as arguments or up as return values, then write correct DFS, level-order BFS and BST solutions, including iterative traversal for trees too deep for recursion.

    9 min read

  • Graphs

    Model a problem as a graph and pick the right tool (BFS, DFS, topological sort, Dijkstra or union-find) while avoiding the visited-set and recursion-depth bugs that cost correctness points.

    9 min read

  • Backtracking: Searching Every Option Without Getting Lost

    Spot 'list every answer' problems, apply one choose, explore, unchoose template to subsets, permutations, combinations and constraint puzzles, prune early, and state the exponential cost honestly.

    9 min read

  • Dynamic Programming: From Recursion to a Table

    Recognize a dynamic programming problem, apply a five-step recipe (state, recurrence, base case, order, answer), move from memoization to a table and cut its space, and explain the solution out loud.

    9 min read

  • Intervals and Greedy: Sort First, Then Decide Once

    Merge, insert and count overlapping intervals with a sort-then-sweep template, justify a greedy rule with the exchange argument, and recognize when greedy fails and dynamic programming is needed.

    9 min read

  • Low-Level Design Interviews: Modeling a System in Code

    Turn a small real-world system into classes and interfaces with a seven-step flow, apply SOLID and four core patterns where they earn their place, and extend the design without rewriting it.

    8 min read

  • Concurrency in Low-Level Design Interviews

    Spot the check-then-act races concurrency adds to a design, fix them with the right tool (concurrent collection, lock, atomic, read-write lock or bounded queue), avoid deadlock with lock ordering, and answer the multi-server follow-up.

    8 min read

  • Design an Elevator System: A Low-Level Design Walkthrough

    Walk an elevator design end to end: requirements, entities, a state-pattern state machine, LOOK stop ordering, a cost-based dispatch strategy, extensions without a rewrite, and concurrency.

    9 min read

  • System Design Interviews: The Quick Start

    Know which system design interview you face and how depth expectations change by level, then deliver any design with a six-step, 45-minute framework whose estimates drive real decisions.

    7 min read

  • ML System Design Interviews: The Quick Start

    Run an ML system design interview with an eight-step, 45-minute framework, from framing and labels to metrics, serving, drift and feedback loops, worked through on a harmful-comment classifier.

    9 min read

  • Thinking in Systems: From One Server to Millions of Users

    Explain why each part of a typical web architecture exists by growing one app from a single server to millions of users, naming what broke and what each fix costs.

    7 min read

  • The Fundamentals First: Networking, APIs and Estimation

    Choose between REST, gRPC, WebSockets and polling, use the latency numbers that matter, and turn a vague prompt into reads per second, storage and bandwidth with back-of-the-envelope estimation.

    7 min read

  • Core Building Blocks: Load Balancers, Caches, Queues, Databases and CDNs

    Know when to add a load balancer, cache, queue, database, CDN or object storage, what each costs, and the follow-up questions to expect, then justify a full URL shortener design built from them.

    7 min read

  • Scaling Data: Replication, Partitioning and Consistency

    Pick and defend a partition key, handle hot keys, explain leader-follower, multi-leader and quorum replication, state CAP and PACELC correctly, and match a consistency guarantee to each feature.

    8 min read

  • API Design in a System Design Interview

    Write a small, defensible API in five minutes, with resources, cursor pagination, idempotency keys, errors, versioning and a reasoned choice of REST, RPC, GraphQL or streaming, and answer the follow-ups it triggers.

    8 min read

  • Data Modeling for System Design Interviews

    Turn requirements into entities and access patterns, choose keys and indexes for the queries that matter, and denormalize for the read path with a stated update path.

    8 min read

  • How to Run a Deep Dive in a System Design Interview

    Pick the riskiest part of your design and work through it in five steps (numbers, options, trade-off, decision, failure mode), with a chat message fan-out as the worked example.

    9 min read

  • Choosing and Scaling a Database

    Choose a database from the data's access patterns, explain how indexes, replicas and shards change performance and what each costs, and walk through two storage decisions with numbers.

    8 min read

  • Caching in Depth

    Place a cache, choose its read and write pattern, TTL and eviction, handle stampedes, hot keys and lookups for missing keys, and calculate how much load it takes off the database.

    8 min read

  • Load Balancing in Depth

    Choose between Layer 4 and Layer 7, match the algorithm to the traffic, design health checks, drain long-lived connections, remove the load balancer as a single point of failure, and route users across regions.

    8 min read

  • Queues and Event Streams in Depth

    Choose between a message queue and an event log, state delivery semantics and ordering scope, size partitions and consumers, and handle lag, poison messages and the dual-write problem.

    9 min read

  • Search and Geospatial Indexes in Depth

    Explain inverted indexes, analyzers and ranking, keep a search index in sync with change data capture, support partial-word search, and size a find-nearby feature with geohashes or quadtrees.

    8 min read

  • Scaling Reads

    Apply the read-scaling moves in order (fix queries, denormalize, add replicas, cache, precompute), check each against a read-rate estimate, and handle replication lag and hot keys.

    8 min read

  • Scaling Writes

    Raise write capacity by writing less, splitting latest state from history, batching behind a durable log, sharding by the write key and splitting hot counters, and size bursts and backpressure with real arithmetic.

    8 min read

  • Real-Time Updates

    Choose between polling, long polling, server-sent events and WebSockets, route each update to the server holding the recipient's connection, and handle ordering, reconnection, missed messages and presence.

    7 min read

  • Dealing with Contention: When Everyone Wants the Last Seat

    Work out how many updates per second a hot row can take, then pick and defend the right fix: pessimistic or optimistic locking, atomic conditional updates, expiring holds, fenced distributed locks, queues or split stock.

    8 min read

  • Multi-Step Processes and Long-Running Jobs

    Design flows that span services so they finish or cleanly undo themselves, with sagas, compensations, idempotent retries, the outbox pattern and durable workflows, and run long jobs with status, heartbeats and dead-letter queues.

    8 min read

  • Handling Large Files: Uploads, Processing and Delivery

    Keep large files off your API servers with presigned and resumable multipart uploads, keep metadata and stored bytes consistent, process files after upload, and deliver them through a CDN with range requests.

    7 min read

  • Design a Ticket Booking System

    Design event ticketing end to end: hold seats without double-selling, absorb a million-fan on-sale with a virtual waiting room, serve availability from cache, and handle a payment that succeeds after its hold expired.

    9 min read

  • Design a News Feed

    Build a social feed end to end, choosing fan-out on write, on read or a hybrid from the read and write numbers, sizing the feed cache, and handling celebrity accounts, pagination and ranking.

    7 min read

  • Case Interviews: How They Run and How They Are Scored

    Learn who faces case interviews, how interviewer-led and candidate-led cases run, and how to open any case with a few sharp clarifying questions and a structure built for the prompt.

    8 min read

  • Case Math and Market Sizing

    Do case math out loud and accurately (percentages, margin vs markup, growth, breakeven and payback) and size a market top-down with a bottom-up sanity check.

    8 min read

  • Common Case Types

    Recognize profitability, market entry, growth, pricing, acquisition and operations cases, ask the questions that decide each, and close with a recommendation that leads with the answer.

    9 min read

Role-play interviews

All role-plays lessons
  • Knowledge Interviews: Explaining What You Know

    Explain any core concept in your field with a four-part pattern (definition, mechanism, example, limits), go deeper on follow-ups, and handle gaps honestly by reasoning from first principles.

    7 min read

  • Negotiating Your Offer

    Understand every part of an offer, defer early salary questions, research a range, and ask for more with a specific, reasoned script that works in any field.

    8 min read