DEV Community

Miss Pooja Anilkumar Patel
Miss Pooja Anilkumar Patel

Posted on

237. leetcode Solution in Python3

class Solution:
  def deleteNode(self, node):
    node.val = node.next.val
    node.next = node.next.next
Enter fullscreen mode Exit fullscreen mode

leetcode

CHALLENGE

Here is the link for the problem:
https://leetcode.com/problems/delete-node-in-a-linked-list/

Top comments (0)