![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构;Java
Ttbrother
这个作者很懒,什么都没留下…
展开
-
Java单链表的实现
Java单链表的实现 构建一个结点类LNode package com.SigleLinkList; /* * 结点类 */ public class LNode { public char data; public LNode next; //类型要使用LNode,因为结点指向结点.next必须是同类型的 //无参构造方法 public LNode() {原创 2017-11-28 20:44:56 · 223 阅读 · 0 评论 -
反转链表java
反转链表 public LNode Reversal_List() { LNode pre = null; LNode cur = head; while(cur!=null) { LNode next = cur.next; cur.next = pre; pre = cur; cur = next; } return pre; }翻译 2017-11-28 21:26:42 · 135 阅读 · 0 评论