Data structures & algorithms
Complexity, patterns, and how interviewers evaluate your problem-solving.
Questions
MediumHow do you choose between BFS and DFS on a graph interview problem?
Pro tip
Start by clarifying whether the graph is directed/weighted and expected output (path vs. reachability).
EasyWhat does it mean to "trade time for space" in interviews?
// Example: complement lookup turns two-sum into O(n)
Map<Integer, Integer> idx = new HashMap<>();
for (int i = 0; i < nums.length; i++) {
int need = target - nums[i];
if (idx.containsKey(need))
return new int[] { idx.get(need), i };
idx.put(nums[i], i);
}Pro tip
If you use a hash map, call out worst-case collisions and why Integer keys are still fine here.
EasyHow do you communicate your approach before coding?
System design foundations
High-level architecture, scalability vocabulary, and structured trade-offs.
Questions
MediumWhat are the first clarifying questions you ask in a system design round?
Pro tip
Time-box discovery (~5 minutes) so you still draw a full architecture.
EasyExplain horizontal vs vertical scaling in one minute.
HardWhy do teams introduce caches, and what can go wrong?
Web & backend engineering
HTTP semantics, APIs, databases, and production hygiene.
Questions
MediumHow do idempotent HTTP methods help in distributed systems?
// Example header pattern (conceptual)
// Idempotency-Key: <uuid> on POST /paymentsPro tip
Mention at-least-once delivery from message brokers and why deduplication matters.
EasyWhat is connection pooling and why does it matter?
Behavioral & communication
STAR stories, cross-functional work, and signals hiring managers listen for.
Questions
EasyHow do you structure a behavioral answer without rambling?
Pro tip
Prepare 6–8 stories that map to leadership principles or company values you research beforehand.