My question is for the problem above in the title. I wrote a solution and in all testcases until 19 it was accepted. In 20 it printed that: "wrong answer Integer parameter [name=current length] equals to 0, violates the range [1, 5962]"
What that means?? What is my error?? It is in size?? or something else?
I think that means one of your groups has size 0.
Hmm,thank you!!! I will check it.