Top 50 latency Interview Questions
The most frequently asked latency questions across all roles and companies, ranked by real interview frequency. Updated daily.
Locate a value across ordered sorted shards using two-level binary search to minimize expensive shard probes.
C3.aiCompute rolling p50 and p95 latency with a sorted sliding window and flag sudden generation spikes.
AnthropicOptimize longest unique-subarray detection for linear latency and bounded auxiliary memory.
MicrosoftDesign an algorithm that processes a data stream while keeping per-item latency within a strict bound.
CitadelScan production observations once to identify unique requests with latency or accuracy failures.
SalientBuild an inverted index and intersect sorted posting lists to return documents matching every query term efficiently.
WiproFind the k-th smallest TikTok Shop server latency using a max-heap with O(n log k) time.
TikTok ShopSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Rewrite a peak-usage latency query efficiently using selective filtering, aggregation, and an index-aware join.
SunoOptimize a PostgreSQL window query by reducing rows before cumulative account-level transaction calculations.
PlaidRewrite a slow distributed event query using predicate pushdown, pre-aggregation, joins, and deterministic ranking.
Factored