22nd Sep 2018, 5:52 AM
Programmer Raja
Programmer Raja - avatar
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.
22nd Sep 2018, 6:15 AM
Nestor
+ 2
nestor thanks you so much
22nd Sep 2018, 6:35 AM
Programmer Raja
Programmer Raja - avatar