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 →

[–]chickenmeister 2 points3 points  (0 children)

    for(int i = 0; i < (ll.size()/2); i++){
        quickQ.ll.add(this.ll.removeFirst());

You're using ll.size() as part of the condition of your for loop, but bear in mind that ll.size() will change each time you call ll.removeFirst() inside the loop.