![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
牧儿
Hope is a good thing,maybe the best of things.And no good thing ever dies!
展开
-
链表
package 链表;//定义一个结点class Node{ Node next = null; int data; public Node(int data){ this.data = data; }}public class MyLinkedList { Node head = null;//链表的头结点 /...原创 2018-09-09 16:21:02 · 144 阅读 · 0 评论 -
队列
创建一个队列 package 队列; //定义一个结点 class Node{ Node next = null; Integer data; public Node(Integer data){ this.data = data; } } public class Queue {...原创 2018-09-09 16:30:35 · 159 阅读 · 0 评论 -
栈
创建一个栈 package 栈; //定义一个结点 class Node{ Node next = null; Integer data; public Node(Integer data){ this.data = data; } } public class Stack { ...原创 2018-09-09 16:38:04 · 201 阅读 · 0 评论 -
二叉查找树
package 树; import java.util.Stack; /** * 定义一个结点 */ class Node{ Node left = null; Node right = null; Integer data; public Node(Integer data){ ...原创 2018-09-09 16:40:45 · 154 阅读 · 0 评论