[–] 33a 9y ago ↗ You can solve this problem faster using the extended Euclidean algorithm. [–] fyquah95 9y ago ↗ Does the algorithm yield the exact path to the target volume?
[–] thecynh 9y ago ↗ I wonder how many people tried the "5 and 3 gallon canister, target is 4 gallons" from Die Hard 3 … I know I did!Context: https://www.youtube.com/watch?v=BVtQNK_ZUJg [–] fyquah95 9y ago ↗ Adding this video to the page, thanks for sharing!
[–] bbcbasic 9y ago ↗ Intuitively, to be possible I think the target amount has to be divisible by the gcf of the two jugs.
7 comments
[ 2.8 ms ] story [ 14.8 ms ] threadContext: https://www.youtube.com/watch?v=BVtQNK_ZUJg