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

6 Solutions

4 Solvers

Last Solution submitted on Feb 19, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers4

Suggested Problems

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!