First Bad Version with Parallel Search Follow-up

Asked at Google · Coding Questions · Difficulty: Medium · Last asked Jun 15, 2026

Phone-screen R1 coding round. The base problem is the standard first-bad-version monotonic search — given an `isBadVersion(v)` oracle over versions `1..n`, find the first bad version with a single binary search. The graded follow-up requires parallelizing the search: partition the range into buckets and search them concurrently (bucket + binary search), with working code expected.

Loading the problem…