Skip to content

Interview Preparation

DSA, system design and stories that land offers.

A structured plan for software engineering interviews: data structures and algorithms by pattern, system design, CS fundamentals, role-specific questions for Java and DevOps, and behavioural practice with mock interviews.

01Data structures & algorithms

Learn patterns, not individual problems.

  1. Big-O, time & space complexityBig-O describes how an algorithm's time or memory grows as the input size n grows. Interviewers expect you to state it for every solution and to compare options by it.11 min
  2. Arrays & stringsArray and string problems test careful indexing, in-place updates and precomputation. Prefix sums and two-pass scans turn repeated work into a single O(n) pass.10 min
  3. Hash maps & setsHash maps and sets give average O(1) insert and lookup. Replacing an inner search loop with a hash lookup is the classic way to turn O(n squared) into O(n).10 min
  4. Two pointers & sliding windowTwo pointers walk an array from both ends or at different speeds, avoiding nested loops. A sliding window is a pair of pointers marking a range that grows and shrinks as you scan.11 min
  5. Stacks, queues & monotonic stacksA stack is last-in, first-out and a queue is first-in, first-out. A monotonic stack keeps elements in sorted order to find the next greater or smaller element in O(n).10 min
  6. Linked listsA linked list is a chain of nodes where each points to the next. Problems test pointer rewiring without losing nodes, often using a dummy head or fast and slow pointers.10 min
  7. Binary search (including on answers)Binary search halves a sorted range each step to find a target in O(log n). It also works on any yes/no condition that flips once, such as finding the smallest speed that is fast enough.11 min
  8. Recursion & backtrackingRecursion solves a problem by calling itself on smaller inputs until a base case. Backtracking uses recursion to build candidates step by step, undoing each choice to try the next.13 min
  9. Trees & BSTsTree problems are mostly about traversal: depth-first with recursion or breadth-first with a queue. In a binary search tree, every left value is smaller and every right value larger than the node.12 min
  10. Heaps & priority queuesA heap always keeps the smallest (or largest) element at the top, with O(log n) insert and remove. It is the go-to structure for top-k, k-th largest and merge-k problems.12 min
  11. Graphs: BFS, DFS, topological sort, DijkstraA graph is nodes connected by edges, stored as an adjacency list. BFS finds fewest-edge paths, DFS explores components, topological sort orders dependencies and Dijkstra handles weighted shortest paths.14 min
  12. Dynamic programmingDynamic programming solves problems with overlapping subproblems by storing each answer once. You define a state, write how it depends on smaller states, then compute with memoisation or a table.13 min
  13. Greedy & intervalsA greedy algorithm makes the locally best choice at each step and never revisits it. It is fast and simple, but only correct when a local choice can be proven safe; intervals are the classic case.12 min
  14. Tries & union-findA trie stores words character by character so all words sharing a prefix share a path. Union-find tracks which items are connected, merging groups in nearly constant time.13 min

02System design

Structured thinking about large systems.

  1. Fundamentals: scaling, load balancing, CAPSystem design interviews test how you scale a service and reason about trade-offs. The core ideas are horizontal scaling behind load balancers, and the consistency versus availability choice described by CAP.13 min
  2. Caching, replication, sharding & databasesData choices dominate system design: which database, how to cache, how to copy data for reads and how to split it across machines. Each choice trades latency, consistency and complexity.13 min
  3. Queues, async processing & rate limitingQueues let a service accept work quickly and process it later in background workers. Rate limiting protects services from overload by capping how many requests each client can make.13 min
  4. Practice: URL shortener, chat, news feed, rate limiterPractice applies the framework to classic prompts like a URL shortener, chat, news feed and rate limiter. The goal is a clear 45-minute walk from requirements to a defended design.13 min

03CS fundamentals

The theory questions that still come up.

  1. Operating systems: processes, threads, memory, deadlocksThe operating system shares the CPU and memory among programs. Interviews ask about processes versus threads, scheduling, virtual memory and how deadlocks happen and are prevented.13 min
  2. Computer networks: TCP/UDP, HTTP, DNS, TLSNetworking questions centre on how data travels reliably and securely. Knowing TCP vs UDP, DNS, HTTP and TLS lets you explain what happens when you type a URL.12 min
  3. DBMS: ACID, isolation levels, indexes, normalisationDBMS questions cover how databases keep data correct under concurrency and failure, and how they find rows fast. Key topics are ACID, isolation levels, B-tree indexes and normal forms.12 min

04Role-specific questions

Depth in your own stack.

  1. Java & Spring Boot interview questionsJava interviews probe internals: how HashMap works, equals and hashCode, thread safety, JVM memory and how Spring builds beans and proxies. Explain the why, not just the API.13 min
  2. DevOps, Docker, Kubernetes & CI/CD questionsDevOps interviews are scenario-driven: debug a failing pod, design a pipeline, handle an outage. Show a calm, step-by-step method and explain the trade-offs of each tool.13 min
  3. SQL interview problemsSQL interview problems focus on ranking, aggregation and joins, often timed. Recognising which window function or join pattern fits is most of the work.12 min

05Behavioural & job search

Get the interview, then close it.

  1. Resume, LinkedIn & GitHub profileYour resume, LinkedIn and GitHub get you the interview. Recruiters skim in seconds, so each bullet must show what you did and the measurable result.12 min
  2. STAR stories for common questionsBehavioural questions check how you work with people and handle setbacks. The STAR structure keeps answers focused, and a small bank of rehearsed stories covers most questions.12 min
  3. Mock interviews & timed practiceMock interviews reveal gaps that solo practice hides, like freezing or going silent. A loop of timed mocks, honest feedback and targeted drills is the fastest way to improve.12 min