摘要:
package com.Exercise.DataStructure_Algorithm.Recursion; public class RecursionTest1 { public static void main(String[] args) { test1(3); int res = tes 阅读全文
摘要:
堆栈原理: 数组模拟堆栈: //数组模拟栈 class ArrayStack{ //栈顶 private int top = -1; private int maxSize; private int[] arrayStack; public ArrayStack(int maxSize){ this 阅读全文
摘要:
单链表是单向链表,它指向一个位置: 单链表常用使用场景:根据序号排序,然后存储起来。 代码Demo: package com.Exercise.DataStructure_Algorithm.SingleList; import java.util.Stack; public class Singl 阅读全文