You are given two jugs with capacities jug1Capacity and jug2Capacity, and a targetCapacity. Determine whether it is possible to measure exactly targetCapacity liters using these two jugs by filling…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.