You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package class33;
|
|
|
|
public class Problem_0237_DeleteNodeInLinkedList {
|
|
|
|
public static class ListNode {
|
|
int val;
|
|
ListNode next;
|
|
}
|
|
|
|
public void deleteNode(ListNode node) {
|
|
node.val = node.next.val;
|
|
node.next = node.next.next;
|
|
}
|
|
|
|
}
|