0517. Super Washing Machines
Description
**Input:** machines = [1,0,5]
**Output:** 3
**Explanation:**
1st move: 1 0 <-- 5 => 1 1 4
2nd move: 1 <-- 1 <-- 4 => 2 1 3
3rd move: 2 1 <-- 3 => 2 2 2**Input:** machines = [0,3,0]
**Output:** 2
**Explanation:**
1st move: 0 <-- 3 0 => 1 2 0
2nd move: 1 2 --> 0 => 1 1 1ac
Last updated