Comment Comment by lifthrasiir The code assumes that, once the loop finishes, out[0] through out[index-1] contains the desired output. out[index] is not a part of that output. parent lifthrasiir 7 years ago