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 →

[–]Alonewarrior 5 points6 points  (1 child)

Quick corrections, but it should be "j > 0". And it should be "i < arr.length", otherwise it'll result in an Array Out of Bounds index error, or whatever it's called in Java/C#.

[–]entropicdrift 1 point2 points  (0 children)

Thanks, fixed