could someone explain the different between g and f in this problem? don't all the glasses get filled in the bottom level?
Chris, the problem states (in bold font) that "water only spills outward" and therefore not all glasses are necessarily filled.
917 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1522 Solvers
Sum of diagonal of a square matrix
1331 Solvers
Find a subset that divides the vector into equal halves
335 Solvers
Set the array elements whose value is 13 to 0
955 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!