package leetcode;

/**
 * https://leetcode.com/problems/delete-node-in-a-linked-list/
 */
public class Problem237 {
    public static class ListNode {
        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
        }
    }

    public void deleteNode(ListNode node) {
        // TODO:
    }

    public static void main(String[] args) {
        Problem237 prob = new Problem237();
        
        ListNode head = new ListNode(1);
        head.next = new ListNode(2);
        head.next.next = new ListNode(3);
        head.next.next.next = new ListNode(4);
        
        prob.deleteNode(head.next.next);
    }
}

@@ -305,326 +305,58 @@
     
-// TODO:%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Problem237 prob = new Problem237();%0A        %0A        ListNode head = new ListNode(1);%0A        head.next = new ListNode(2);%0A        head.next.next = new ListNode(3);%0A        head.next.next.next = new ListNode(4);%0A        %0A        prob.deleteNode(head
+node.val = node.next.val;%0A        node.next = node
 .nex
@@ -361,17 +361,16 @@
 ext.next
-)
 ;%0A    %7D%0A

Solve problem 237