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

15 Solutions

9 Solvers

Last Solution submitted on Apr 09, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers9

Suggested Problems

More from this Author20

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!