Find the minimum steps to get T units from jugs A and B. Return the sequence of actions as cell array of strings.
Available actions: F1, F2 (Fill) E1, E2 (Empty) P12, P21 (Pour).
- Example: A = 3, B = 5, T = 1 -> { 'F1' , 'P12' }
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
4 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Cool problem set! One minor issue: the solution for test 9 is not unique, and the test suite should accept both "F1" and "F2" as valid results.
thanks for your idea christian schroder