diff --git a/src/solution/test.java b/src/solution/test.java index c27fb7a..d62d0e4 100644 --- a/src/solution/test.java +++ b/src/solution/test.java @@ -6,9 +6,12 @@ import java.util.stream.Collectors; public class test { public static void main(String[] args) { - int[] nums = new int[]{9}; - int[] result = Solution.plusOne(nums); + ListNode head = new ListNode(1); + head.next = new ListNode(1); + head.next.next = new ListNode(1); + head.next.next.next = new ListNode(2); + + ListNode result = Solution.deleteDuplicates(head); System.out.println(result.toString()); } - }