We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 24: More Linked Lists
Day 24: More Linked Lists
Sort by
recency
|
707 Discussions
|
Please Login in order to post a comment
In C#
if(head==null || head.next == null) { return head; } else { Node current = head; while(current.next != null) { if(current.data == current.next.data) { current.next =current.next.next; } else { current =current.next; } return head } return head; }
}
My Swift Solution:
My Python Solution: