![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构与算法
愿随我ღ
这个作者很懒,什么都没留下…
展开
-
队列代码实现
队列 public class ArrayQueueDemo { public static void main(String[] args) { //创建队列 ArrayQueue queue = new ArrayQueue(3); char key = ' '; Scanner scanner = new Scanner(System.in); boolean loop = true; //输出一个原创 2021-06-03 23:27:09 · 232 阅读 · 0 评论 -
稀疏数组的实现
稀疏数组的实现 public class SparseArray { public static void main(String[] args) { //创建一个原始的二维数组11*11 //0:表示没有棋子,1表示黑子2表示蓝子 int chessArr1[][] = new int[11][11]; chessArr1[1][2] = 1; chessArr1[2][3] = 2; chessArr原创 2021-06-03 22:33:29 · 94 阅读 · 0 评论