@quincyhehe Because we stop when
groups[i] is zero, the first
k times the solution runs, there is at most
i choices for
i <= k.
@LeonCheng Thanks, appreciate it.
@victorzhang21503 Expected is correct.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.