Why it is giving array index out of bounds exception | Sololearn: Learn to code for FREE!

+1

Why it is giving array index out of bounds exception

https://code.sololearn.com/ca18A9A253a2/?ref=app

3 Answers

New Answer

+4

๐ŸŽถ๐Ÿ’žSravs๐Ÿ’ž๐Ÿฅ€ Because there is i++ on line number 24 there should be i-- and on line number 33 there should be i < size https://code.sololearn.com/cTr6QSOIhtlZ/?ref=app

+3

Line 33 i<size

+1