Different actions have different monetary costs:
Fill = $10 , Empty = $5 , Pour = $1 #Note: It's just an example
Find the minimum cost to reach target T in any jug.
  • Input: C, T, costs_vector ( where costs_vector = [10,5,1], you can understand that it represents Fill, Empty and Pour respectively but their value can change, it doesn't stay stablility at [10,5,1] )

Solution Stats

3 Solutions

3 Solvers

Last Solution submitted on Feb 19, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers3

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!