刷题
gaibian123
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
反转部分单项链表之Java实现
//package com.zfq.dataStructure01; public class ReversePart { public static Node reversePart(Node head,int f,int t) { if(f>t||f<1) return head; Node pre1=head; Node pre2=head; //找到要删除节点原创 2016-12-12 15:42:35 · 705 阅读 · 0 评论 -
java判断一个链表是否是回文结构
public class IsHuiWenUpdate2 { public static boolean isHuiwenUpdate(Node head) { Node n1=head; Node n2=head; while(n2.next!=null&&n2.next.next!=null) { n1=n1.next; n2=n2.next.next;原创 2016-12-12 21:20:57 · 1172 阅读 · 0 评论 -
两个单链表生成相加链表
public class AddList02 { public static Node addList01(Node head1,Node head2) { head1=reverseList(head1); head2=reverseList(head2); int n1=0; int n2=0; int n=0; int ca=0; //进位 No原创 2016-12-13 21:32:41 · 815 阅读 · 0 评论
分享