Need help with a problem : Leetcode Super Washing Machines
I have been thinking about this problem for about a week now. But I have not been able to understand the logic behind the solution. Any help is really appreciated. Thanks!