Hash Table Interview Questions
16 interview questions in our bank cover Hash Table, most of them Coding Questions. They average 2.7/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Hash Table: Amazon, Capital One, Otter.ai, Upstart, Meta, and 10 more.
Practice these on the problems board →Companies that ask about Hash Table
Question mix
- Coding Questions16
Difficulty
- 2/5 — easy5
- 3/5 — medium11
Hash Table questions at Amazon
Streaming Task Scheduler with Cancellation and a Simulated Clock
3/5A design-style coding question on a deterministic job queue: jobs arrive continuously, each due at its own moment, and the structure must release them in the right order while callers may withdraw a job before it fires. It tests tie ordering, reused identifiers and keeping memory bounded under heavy churn.
Coding QuestionsAmazonSubarray Containing Two Values With the Fewest Distinct Numbers
3/5A coding question on finding a contiguous stretch of an integer array that includes both of two given values while containing as few different values as possible, and returning that count.
Coding QuestionsAmazon
More Hash Table questions
Number of Substrings with Unique Characters
3/5Count the three-character windows of a string whose letters are all different from each other. This Capital One question is a fixed-size window scan, and the only real decision is whether to recount each window or maintain counts as the window slides. You will handle strings shorter than the window, keep the comparison cheap for a window this small, and state the cost for a very long input. A subscription unlocks the complete problem and the reference solution.
Coding QuestionsCapital OneIn-Memory Key-Value Database with Transactions
3/5As reported in technical evaluations for Otter.ai, this problem requires candidates to build a lightweight, in-memory data store that handles fundamental retrieval and modification actions alongside transactional block controls. Developers need to manage state changes carefully, allowing users to stage updates, apply them permanently, or discard them as needed while keeping track of visibility rules across different operational blocks. This tests architectural thinking, state management, and data structures. To view the complete problem description and professional solution, a subscription is necessary.
Coding QuestionsOtter.aiBabysitter Quote with Time-of-Day Rate Bands
2/5A coding question on pricing an evening of child care when the hourly rate changes with the time of day. It tests careful handling of awkward inputs: shifts that cross midnight, schedules that wrap around the clock, overlapping or incomplete rate bands, and invalid times that must be rejected rather than priced.
Coding QuestionsUpstartContainer with insert and popRandom
3/5A data-structure design question about a collection that stores distinct values and can return a uniformly chosen member while deleting it. It is about combining two structures so that lookup, insertion, and uniform sampling with removal all stay constant time, and keeping their bookkeeping consistent.
Coding QuestionsMetaLast String Before It Becomes Empty Under Repeated Alphabetical Removals
3/5A coding question about a lowercase string that is trimmed in repeated passes, one letter at a time. You must report the text that remains just before it disappears, for inputs far too long to replay pass by pass.
Coding QuestionsFlexportWord Dictionary with Add and Exact Search
3/5A coding question on a small data-structure class that stores words and answers lookups quickly even when many words begin alike. A follow-up asks a related question about word beginnings.
Coding QuestionsCoupangData Structures Characteristics
3/5Prepare for your upcoming technical interview with General Motors by exploring the foundational traits of essential computer science containers. This curated challenge evaluates your ability to compare and contrast various organizational strategies, examining the trade-offs, performance strengths, and specific operational contexts best suited for each architecture. You will review how different memory layouts impact retrieval and modification efficiency across sequential and hierarchical layouts. Access to the comprehensive breakdown and expert answers requires an active subscription.
Coding QuestionsGeneral MotorsUnique Intersection of Two Integer Arrays
2/5Return the values that occur in both of two integer arrays, listing each one only once. This Netflix warm-up is a set-intersection exercise, and the deduplication is the whole specification: repeated values in either input must not produce repeated output. You will decide which array to turn into a lookup, keep the result free of duplicates, and note how the cost changes if both arrays arrive sorted. The complete problem and the reference solution are available to subscribers.
Coding QuestionsNetflixPair of Positions Adding Up to a Target
2/5A coding question about a list of integers and a target sum. The learner must locate two distinct entries that together reach the sum and report their indices in increasing order, or report that none exist.
Coding QuestionsAgodaDeduplicate Log Messages and Return Them in Timestamp Order
3/5A coding question about removing repeated entries from an event record and returning what remains in time order. It probes careful reading of which copy to keep, deterministic ordering when times collide, and an incremental version where entries show up one by one and must be handed out earliest first.
Coding QuestionsGoogleFind Two Numbers in Array Equal to Target
2/5Reported from technical interviews at Aurora, this fundamental coding exercise challenges you to locate a pair of elements within an integer collection that sum up to a specific target value and return their corresponding positions. It serves as an essential test for optimizing search performance using hash-based data structures to reduce time complexity. View the complete problem description and efficient algorithmic solution by securing a subscription.
Coding QuestionsAuroraSales Tax Owed per State from Transactions and Tax Authorities
2/5A coding question on computing sales tax owed to three US states from a list of sales and a table of regional tax authorities. It tests falling back to a postcode lookup when the state is missing, taxing only the items each authority covers, subtracting credits and refunds, and rounding just once per state.
Coding QuestionsSphereCount Subarrays with Equal Even and Odd Counts
3/5A coding question about a list of integers, some negative: the learner returns how many contiguous, non-empty stretches hold as many even values as odd ones. Stretches are told apart by where they start and end, lists can hold up to a hundred thousand values, and the total can exceed what a 32-bit integer stores.
Coding QuestionsMicrosoftFind the Incorrect Data Labeler
3/5Audit a pile of crowd annotations to find the single worst human labeller, judged against the majority opinion on each item rather than against any ground truth. Reported at OpenAI, this exercise rewards clean aggregation in two passes and punishes anyone who forgets what happens when a vote ties. You will group annotations per item, resolve majorities, score each labeller by disagreement rate, and break ties deterministically. The full problem statement and the reference implementation are available with a subscription.
Coding QuestionsOpenAI
Studied alongside
Hash Table interview FAQ
- How many Hash Table interview questions are there?
- 16 reported questions, mostly Coding Questions.
- Which companies ask Hash Table questions?
- Amazon (2), Capital One (1), Otter.ai (1), Upstart (1), Meta (1), Flexport (1), Coupang (1), General Motors (1).
- How hard are Hash Table questions?
- They average 2.7 out of 5: 5 at 2/5, 11 at 3/5.