Two Sum
Return indices of two numbers adding to a target. The one-pass hash map is the expected O(n).
Worked Amazon set →Representative coding, system-design, and behavioral questions in the style each company actually favors. Filter by company and by type, then practice them out loud and timed. Several link to a full worked solution.
Return indices of two numbers adding to a target. The one-pass hash map is the expected O(n).
Worked Amazon set →Design get/put in O(1). Hash map + doubly linked list is the canonical answer.
Count connected land cells in a grid. DFS/BFS flood fill or Union-Find.
Min-heap of list heads, O(n log k). A classic Amazon hard.
Two-pointer sweep tracking left/right max. Often the second-round closer.
Tests Have Backbone; Disagree & Commit. Use a STAR story with data and a respectful resolution.
Amazon behavioral guide →Tests Ownership + learning. Own it, show the fix and what changed afterward.
Multi-channel (push/email/SMS), fan-out, retries, rate limiting, and dedup.
Worked solution →O(log(m+n)) binary-search partition. A signature Google hard.
Worked Google set →Shortest transformation sequence — BFS over a word graph.
Can all courses be finished? Topological sort / cycle detection in a DAG.
Google’s “Googleyness” signal — show structured progress without full information.
URL frontier, politeness, dedup, distributed fetch — classic Google design.
Worked solution →Two pointers from both ends. Often paired with a second harder problem.
Worked Meta set →Prefix sums + hash map of counts. A Meta favorite.
Sort by start, merge overlaps. Tests clean interval handling.
Meta values cross-team impact. Show how you aligned people without owning them.
Fan-out on write vs read, ranking, and the celebrity problem.
Worked solution →Timeline generation, fan-out, and read/write trade-offs at scale.
Worked solution →Iterative pointer re-linking, O(n)/O(1). A Microsoft warm-up staple.
Boundary-shrinking traversal. Tests careful index bookkeeping.
DFS/BFS with a visited map from original to copy.
Show empathy, a concrete resolution, and what you learned about collaboration.
Support push/pop/top and min in O(1) — keep an auxiliary min stack.
O(1) get/put. Apple often digs into the data-structure trade-offs.
Apple prizes craftsmanship — show where you refused to ship something half-done.
Upload/transcoding pipeline, CDN egress, and adaptive bitrate.
Worked solution →Consistent hashing, eviction, replication, and hot-key handling.
Netflix’s “freedom & responsibility” bar — show senior, independent judgment.
Cache blocking and memory-access patterns — Nvidia probes performance thinking.
Worked Nvidia set →Bounded buffer with mutex + condition variables. Tests real concurrency.
Key generation (base62), redirect path, and read-heavy caching.
Worked solution →Token bucket, distributed counters in Redis, and edge cases at scale.
Worked solution →WebSocket delivery, presence, ordering, and offline message sync.
Worked solution →No questions match those filters. Try clearing the search or picking “All.”
Coding (DS&A, usually 2 rounds), system design (open-ended, mid/senior), and behavioral (your experience vs the company’s values — Amazon’s Leadership Principles being the most famous). Filter this bank by both company and type.
They’re representative, widely-reported questions in each company’s style. Companies rotate exact questions — practice the formats and patterns, not memorized answers.
Pick a company, filter to one type, and do timed attempts out loud: restate the problem, talk through the approach before coding, state the complexity. For behavioral, prepare adaptable STAR stories.
Yes — free, no signup, filter on any device. Published by CoPilot Interview.
When the real round starts, CoPilot Interview is a desktop AI assistant that gives real-time, structured help — approach, code, Big-O, and STAR scaffolding — during the actual interview, with a permanent free tier.
See how it works