标签:
public class Solution { public void deleteNode(ListNode node) { if(node==null||node.next==null) return; node.val = node.next.val; node.next = node.next.next; } }
Java for LeetCode 237 Delete Node in a Linked List
标签:
原文地址:http://www.cnblogs.com/tonyluis/p/5658731.html