PayPal interview question

Remove linked list node provided only pointer to that specific node

Interview Answer

Anonymous

16 May 2020

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

4