Interview Preparation
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.
What you will be able to do
- Recognise the common problem patterns and solve medium problems in 30–40 minutes
- Explain time and space complexity for any solution you write
- Run a system design interview from requirements to trade-offs
- Answer Java, Spring and DevOps questions with depth
- Tell clear STAR stories about your own work
Roadmap
Bar length shows each module's share of study time.
- 187h14 topics
Data structures & algorithms
Learn patterns, not individual problems.
Show topicsNot startedState the complexity of any solution you write.
- Learn Big-O, Big-Theta and Big-Omega
- Analyse loops and recursion costs
- Compare time and space trade-offs
Solve prefix sums, in-place updates and string manipulation problems.
- Learn in-place updates and swaps
- Build prefix sums for range queries
- Practise string building and parsing
- Practice: Two Sum, Best Time to Buy Stock
- Practice: Product of Array Except Self
- Solve 15 easy and medium problems
Use hashing to turn O(n²) into O(n).
- Learn how hash maps work internally
- Count frequencies with maps
- Use sets for membership checks
- Practice: Group Anagrams, Contains Duplicate
- Practice: Longest Consecutive Sequence
Recognise and apply window and pointer patterns.
- Learn the opposite-ends pointer pattern
- Learn fixed and variable sliding windows
- Practice: Valid Palindrome, 3Sum
- Practice: Container With Most Water
- Practice: Longest Substring Without Repeating Characters
Solve bracket, next-greater and queue problems.
- Implement stacks and queues from scratch
- Learn the monotonic stack pattern
- Practice: Valid Parentheses, Min Stack
- Practice: Daily Temperatures, Next Greater Element
Reverse, merge and detect cycles without bugs.
- Implement a singly linked list
- Use dummy heads and fast/slow pointers
- Practice: Reverse Linked List, Merge Two Lists
- Practice: Linked List Cycle, Remove Nth Node
Apply binary search to sorted data and to monotonic answer spaces.
- Write a bug-free binary search template
- Find first and last positions
- Search rotated sorted arrays
- Binary search on the answer space
- Practice: Koko Eating Bananas
Generate subsets, permutations and combinations.
- Trace the call stack and base cases
- Learn the choose-explore-unchoose pattern
- Generate subsets and permutations
- Prune branches early
- Practice: Combination Sum, N-Queens
- Practice: Word Search
Traverse trees and solve depth, path and BST problems.
- Implement DFS traversals recursively and iteratively
- Use BFS for level order
- Solve depth and path sum problems
- Validate and search a BST
- Practice: Max Depth, Lowest Common Ancestor
- Practice: Validate Binary Search Tree
Solve top-k and merge-k problems.
- Learn heap operations and their costs
- Use PriorityQueue with comparators
- Practice: Kth Largest Element, Top K Frequent
- Practice: Merge K Sorted Lists
Model problems as graphs and pick the right traversal.
- Represent graphs with adjacency lists
- Traverse grids and graphs with BFS and DFS
- Detect cycles and order with topological sort
- Find shortest paths with Dijkstra
- Practice: Number of Islands, Course Schedule
- Practice: Network Delay Time
Go from recursion to memoisation to tabulation on 1D and 2D problems.
- Identify states and transitions
- Convert recursion to memoisation
- Convert memoisation to tabulation
- Solve 1D problems: Climbing Stairs, House Robber
- Solve 2D problems: LCS, Unique Paths
- Practice knapsack and Coin Change
Solve interval scheduling and greedy choice problems.
- Learn when greedy choice is safe
- Sort and merge intervals
- Practice: Merge Intervals, Non-overlapping Intervals
- Practice: Jump Game, Gas Station
Use tries for prefixes and union-find for connectivity.
- Implement a trie with insert and search
- Implement union-find with path compression
- Practice: Implement Trie, Word Search II
- Practice: Number of Connected Components
- 224h4 topics
System design
Structured thinking about large systems.
Show topicsNot startedExplain horizontal scaling, consistency and availability trade-offs.
- Compare vertical and horizontal scaling
- Learn load balancers and algorithms
- Explain CAP and consistency models
- Estimate traffic and storage needs
- Use a step-by-step design framework
Choose storage and caching strategies and justify them.
- Compare SQL and NoSQL stores
- Learn cache-aside and write-through caching
- Explain leader-follower replication
- Shard data with consistent hashing
- Justify storage choices with trade-offs
Design background processing and protect services from overload.
- Decouple work with message queues
- Design idempotent background workers
- Compare token bucket and leaky bucket
Run a 45-minute design interview end to end.
- Design a URL shortener
- Design a chat system
- Design a news feed
- Design a rate limiter
- Run timed 45-minute mock designs
Module resources:System Design Primer ↗ - 313h3 topics
CS fundamentals
The theory questions that still come up.
Show topicsNot startedAnswer OS questions with concrete examples.
- Compare processes and threads
- Learn CPU scheduling algorithms
- Explain virtual memory and paging
- Explain deadlock conditions and prevention
- Prepare examples for mutexes and semaphores
Explain what happens when you type a URL.
- Compare TCP and UDP with handshakes
- Explain DNS resolution step by step
- Explain HTTP versions and TLS handshakes
- Answer: what happens when you type a URL
Explain transactions and indexes with trade-offs.
- Explain ACID properties with examples
- Compare isolation levels and anomalies
- Explain B-tree indexes and their trade-offs
- Walk through normal forms
- 416h3 topics
Role-specific questions
Depth in your own stack.
Show topicsNot startedExplain collections internals, concurrency, JVM and Spring internals.
- Explain HashMap and ConcurrentHashMap internals
- Review equals, hashCode and immutability
- Answer threading and synchronization questions
- Explain JVM memory and GC
- Explain Spring beans, proxies and @Transactional
Walk through troubleshooting and design scenarios.
- Explain Docker images, layers and networking
- Debug a CrashLoopBackOff pod
- Design a CI/CD pipeline aloud
- Walk through a production outage scenario
- Compare deployment strategies like blue-green and canary
Solve ranking, aggregation and join puzzles quickly.
- Practice ranking with ROW_NUMBER and DENSE_RANK
- Practice: Second Highest Salary, Nth Highest
- Solve aggregation and self-join puzzles
- Practise timed SQL problems
- 514h3 topics
Behavioural & job search
Get the interview, then close it.
Show topicsNot startedA one-page resume with measurable impact and pinned projects.
- Rewrite bullets with measurable impact
- Fit the resume on one page
- Update LinkedIn headline and summary
- Pin projects and polish GitHub READMEs
Six to eight polished stories: conflict, failure, leadership, impact.
- Learn the STAR structure
- Write stories for conflict and failure
- Write stories for leadership and impact
- Rehearse each story in two minutes
Do at least four timed mocks and fix what they expose.
- Schedule four or more timed mocks
- Mix DSA, system design and behavioural rounds
- Record feedback after each mock
- Drill weak areas between mocks
- Practise thinking aloud while coding