上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: java实现迷宫回溯问题 代码实现 public class Demo { public static void main(String[] args) { // 创建一个二维数组,模拟迷宫 int[][] map = new int[8][7]; // 使用1表示墙 // 上下 for (int 阅读全文
posted @ 2022-03-30 13:45 CoderCatIce 阅读(71) 评论(0) 推荐(0) 编辑
摘要: java实现中缀转后缀表达式 代码实现 public class Demo { public static void main(String[] args) { String expression = "1+((2+3)*4)-5"; List<String> strings = toList(ex 阅读全文
posted @ 2022-03-28 18:18 CoderCatIce 阅读(87) 评论(0) 推荐(0) 编辑
摘要: java实现逆波兰计算器 代码实现 public class PolandDemo { public static void main(String[] args) { // 定义一个逆波兰表达式 // (3+4)*5-6 => 3 4 + 5 * 6 - String suffixExpressi 阅读全文
posted @ 2022-03-28 15:16 CoderCatIce 阅读(57) 评论(0) 推荐(0) 编辑
摘要: java用栈实现计算器完整版 栈类 class Stack { private int maxSize; private int[] stack; private int top = -1; public Stack(int maxSize) { this.maxSize = maxSize; st 阅读全文
posted @ 2022-03-28 12:48 CoderCatIce 阅读(355) 评论(0) 推荐(0) 编辑
摘要: java栈实现 数组实现 Stack类 class Stack { private int maxSize; private int[] stack; private int top = -1; public Stack(int maxSize) { this.maxSize = maxSize; 阅读全文
posted @ 2022-03-27 09:30 CoderCatIce 阅读(92) 评论(0) 推荐(0) 编辑
摘要: joseph问题 单向环形链表 节点类 class Node { public int id; public Node next; @Override public String toString() { return "Node{" + "id=" + id + '}'; } public Nod 阅读全文
posted @ 2022-03-27 08:13 CoderCatIce 阅读(23) 评论(0) 推荐(0) 编辑
摘要: java双向链表的实现 双向链表的增删改查 class DoubleLinkedList { private Node head = new Node(0, "head"); public void deleteNode(Node node) { if (isEmpty()) { System.ou 阅读全文
posted @ 2022-03-26 21:56 CoderCatIce 阅读(23) 评论(0) 推荐(0) 编辑
摘要: java实现单链表 简单插入与展示 package com.algorithm.demo4; public class LinkedListDemo { public static void main(String[] args) { Node user01 = new Node(1, "user0 阅读全文
posted @ 2022-03-25 23:12 CoderCatIce 阅读(47) 评论(0) 推荐(0) 编辑
摘要: SSM中的pom.xml pom.xml <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> </dependency> <depe 阅读全文
posted @ 2022-03-22 00:48 CoderCatIce 阅读(56) 评论(0) 推荐(0) 编辑
摘要: Spring整合Mybatis 导入依赖 <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.38</version> </de 阅读全文
posted @ 2022-03-20 23:21 CoderCatIce 阅读(13) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页