In your second forloop , i never increments past it ' s starting value , and you ' re never using j . So you ' re looping several times doing the same thing each loop . You would probably want something like this for your second loop . forint j i j size 1 j arrOfData arrOfDataj 1 Also , after that second forloop , you will probably want to put in a break to escape the first forloop , right after your decrement the currsize . I hope that helps . I ' m still a little fuzzy about what ' s going on . <| sep |> I used to play on EU , i did not feel any difference when switching to NA D <| sep |> haha lol jk XD <| sep |> I first saw that one on rPsychonaut , who got it from , iirc , rwritingprompts . It just popped into my head because the title reminded me of it . Hang on , I ' ll try to find it . Edit found it ! My favorite answer was still in my saved tab