摘要: 堆栈原理: 数组模拟堆栈: //数组模拟栈 class ArrayStack{ //栈顶 private int top = -1; private int maxSize; private int[] arrayStack; public ArrayStack(int maxSize){ this 阅读全文
posted @ 2021-01-04 15:22 飘渺红尘✨ 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 单链表是单向链表,它指向一个位置: 单链表常用使用场景:根据序号排序,然后存储起来。 代码Demo: package com.Exercise.DataStructure_Algorithm.SingleList; import java.util.Stack; public class Singl 阅读全文
posted @ 2021-01-04 14:58 飘渺红尘✨ 阅读(152) 评论(0) 推荐(0) 编辑
Title