package leetCode;

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

public class _237DeleteNodeLinkedList {
	public void deleteNode(ListNode node) {
		
		node.val=node.next.val;
		node.next=node.next.next;
	}

	public class ListNode {
		int val;
		ListNode next;
		ListNode(int x) { val = x; }
	}
}
delete node from linked list completed