![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
RED!KID
这个作者很懒,什么都没留下…
展开
-
【数据结构】JAVA实现链队列的相关操作
package Queue;import java.util.Stack;class Queuenode{ int data; Queuenode next; public Queuenode(int e){ this.data = e ; } public Queuenode(){ }}public class Lqueue implements QueueIntf{ Queuenode front ; Queu原创 2020-09-06 13:39:29 · 242 阅读 · 0 评论 -
【数据结构】JAVA实现顺序队列的相关操作
package Queue;import List.SqList;public class Squeue implements QueueIntf{ int[] elem; int front,rear; int maxSize; public Squeue(int maxsize){ elem = new int[maxsize]; maxSize = maxsize; front = rear = 0; }原创 2020-09-05 18:17:52 · 295 阅读 · 2 评论 -
【数据结构】JAVA实现链栈的相关操作
package Stack;class Stacknode{ int data; Stacknode next; public Stacknode(int e){ this.data = e; }}public class LinkedStack implements StackIntf{ Stacknode top; public void push(Object x){ Stacknode s = new Sta原创 2020-09-05 14:54:27 · 183 阅读 · 0 评论 -
【数据结构】JAVA实现顺序栈的相关操作
package Stack;import List.SqList;import com.sun.org.apache.xpath.internal.objects.XObject;public class SqStack implements StackIntf{ int[] elem ; int top; public SqStack(int maxsize){ elem = new int[maxsize]; top = 0 ;原创 2020-09-05 14:53:36 · 179 阅读 · 0 评论 -
【数据结构】JAVA实现单链表的相关操作
package List;class Lnode{ public int data; public Lnode next; public Lnode(int data){ this.data = data; } public Lnode(){ }}public class SingleLinkList { Lnode head = new Lnode(); public void addNodeT(int e){原创 2020-09-05 11:11:29 · 90 阅读 · 0 评论 -
【数据结构】JAVA实现顺序表的相关操作
package List;import javax.naming.PartialResultException;import java.awt.image.BandedSampleModel;public class List { private int[] arr; private static int length; public List(int length){ if(length >= 0){ this.arr = n原创 2020-09-05 00:20:47 · 237 阅读 · 0 评论