Create test.java

master
wsy182 2024-07-09 22:46:00 +08:00
parent e27cb1fb87
commit 732d006f3b
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package com.nbee.solution.solution;
public class test {
public static void main(String[] args) {
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());
}
}