PayPal Interview Question

Remove linked list node provided only pointer to that specific node

Interview Answer

Anonymous

May 16, 2020

Solution (O(1)) - copy data from the next node, and then skip it self.data = next.data self.next = next.next.next

4