/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * * @param head ListNode类 * @return ListNode类 */ function deleteDuplicatesTwo(head) { console.log(head) } // 测试用例 console.log(deleteDuplicatesTwo(1))