237-Delete-Node-In-A-Linked-List

Sat 17 May 2025

https://leetcode.com/problems/delete-node-in-a-linked-list

import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
  def deleteNode(self, node):
    node.val = node.next.val
    node.next = node.next.next
new Solution().deleteNode()

Score: 5

Category: leetcode