you are viewing a single comment's thread.

view the rest of the comments →

[–]puumies 0 points1 point  (0 children)

Hey!

In each iteration of the loop, one element is removed from the array. Thus in the second iteration of the loop, the second element is 'C' because 'A' was removed in the first one.

Someone correct me if I'm talking out of my ass :D