You are viewing a single comment's thread. Return to all comments →
previous = head while head.next: if head.next.data == head.data: head.next = head.next.next else: head = head.next return previous
Seems like cookies are disabled on this browser, please enable them to open this website
Day 24: More Linked Lists
You are viewing a single comment's thread. Return to all comments →