+ 2
Why this code not working?
2 Respuestas
+ 6
You are calculating the range at the beginning of the loops but within the second loop, you are removing an entry (thus changing the size of the array). The code will still use the original range which becomes invalid because the array length (the range) is smaller.
+ 2
nestor thanks you so much