← Lyft questions
CodingReported in a candidate post, May 2020

Water and jug problem returning minimum steps

Filed under Lyft

You are given two jugs with capacities x and y litres and an unlimited supply of water. You need to measure exactly z litres. In one step you may: fill either jug completely, empty either jug…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Lyft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.