package listnode;
public class DeleteDuplecate_SingleList {
public static void main(String[] args) {
Node head=ListNode.getSingleList();
ListNode.printList(head);
deleteNode(head);
ListNode.printList(head);
}
public static void deleteNode(Node head){
while(head.next!=null){
Node p=head;
while(p.next!=null){
if(p.next.data==hea
Java单链表基本操作(六)--删除重复节点;
最新推荐文章于 2023-01-06 12:13:22 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)