Why using iterator gave TLE for larger test cases?


#1

I tried using iterator.remove() in the ArrayList class. I was able to solve the problem for smaller test cases, but apparently, it failed for larger test cases.

Can someone help me with what could be those test cases?