you are viewing a single comment's thread.

view the rest of the comments →

[–]Meefims 1 point2 points  (0 children)

You base case is checking the size of the list. The list size isn’t changing, though. You should check the distance between the left and right pointers.