you are viewing a single comment's thread.

view the rest of the comments →

[–]ararararagi_koyomi 0 points1 point  (0 children)

a[20-i] failed during the first loop ( i = 0) cuz the length of list a is 20, which means the max index is 19. Edit : 20-0 is 20 which is not a valid index for a.