Measuring 45 Minutes with Two Uneven Ropes
Measuring 45 Minutes with Two Ropes is an easy quant interview question on Brain Teasers.
This classic brain teaser presents a timing puzzle involving two unreliable resources that behave predictably only in aggregate. You are told how long each resource lasts in total, but not how its behavior is distributed over that interval, and you must still engineer a precise intermediate time. The twist is that you can interact with the resources only in a very restricted way, and you are asked to exploit that limited control cleverly rather than rely on uniformity or continuous measurement. Variants of this style of question appear in tech and trading interviews where creative use of constraints and nonstandard timing tricks are valued.
The solution leans on discrete reasoning, invariants, and the idea of transforming an imprecise process into a precise clock by changing how it is started and stopped. A strong candidate recognizes that nonlinearity in the underlying objects does not prevent linear control of total duration, if you introduce extra "events" at chosen moments. Interviewers look for systematic exploration of the operations allowed, comfort with constructing piecewise time intervals, and the ability to reason about worst-case behavior without assuming any convenient regularity.
What it tests
The core structure here is the use of information theory and ternary search: when you have a tool (like a balance scale) that gives three possible outcomes per use, you can distinguish among up to $3^n$ possibilities in $n$ weighings. The key is to partition the set of possibilities as evenly as possible at each step, so that each outcome of the weighing eliminates about two-thirds of the remaining cases. This is possible because each weighing provides a 'trit' (ternary digit) of information, not just a binary one. The reason this works is that each weighing's result (left heavier, right heavier, balanced) allows you to eliminate a large subset of possibilities, so the total number of distinguishable cases grows exponentially with the number of weighings.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free