Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 10h 10m 33s8 days 10 hours 10 minutes 33 seconds.
Guide: Quant Brainteasers: 10 Classic Interview Puzzles and the Idea Behind Each
You have a 3-litre jug and a 5-litre jug (no markings) and an unlimited water supply. One operation is one of: completely fill a jug from the tap, completely empty a jug, or pour from one jug into the other until the source is empty or the target is full. What is the minimum number of operations needed to have exactly 4 litres in the 5-litre jug?