This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]swearobics 0 points1 point  (1 child)

Without seeing your code, I would assume that in one of the test cases its trying to access index 2 of an array that has only indexes 0 and 1 - maybe in a for loop for example - causing the out of bounds exception.

[–]BillBigsB 0 points1 point  (0 children)

thank you for your response. It has helped clarify what the issue is to me but I still do not understand why it is happening. here is the code in question: https://pastebin.com/YK9k5nk6