class Solution:
def deleteNode(self, node):
node.val = node.next.val
node.next = node.next.next
leetcode
CHALLENGE
Here is the link for the problem:
https://leetcode.com/problems/delete-node-in-a-linked-list/
class Solution:
def deleteNode(self, node):
node.val = node.next.val
node.next = node.next.next
Here is the link for the problem:
https://leetcode.com/problems/delete-node-in-a-linked-list/
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)