The Water Jug Riddle - Quant Trader Interview Question
Difficulty: Medium
Category: Brainteasers
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: modulo-arithmetic, state-space
Problem Description
You are debugging a fluid dynamics simulation. You have an infinite water source and two empty jugs: one holds 5 gallons, the other holds 3 gallons. They have no markings.
How do you measure exactly 4 gallons in the 5-gallon jug?
Practice this medium trader interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.