[Solution]237. Delete Node in a Linked List
Dec 28, 2022 · 1 min read · Problem Problem_Link Solutions (time, space) O(1), O(1) /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */ class Solution { public void deleteNod...
Join discussion