摘要: 1、图的建立 public class Node { public int value;//自己数据项,节点值 public int in;//点的入度,无向图的入度和出度一样 public int out;//点的出度 public ArrayList<Node> nexts;//从当前节点出发, 阅读全文
posted @ 2022-03-09 14:19 nofight 阅读(44) 评论(0) 推荐(0)
摘要: 1、先序遍历 class Solution { public List<Integer> preorderTraversal(TreeNode root) { if(root == null) return new ArrayList<>(); Stack<TreeNode> stack = new 阅读全文
posted @ 2022-03-07 16:57 nofight 阅读(34) 评论(0) 推荐(0)
摘要: 1、冒泡排序 public class BubbleSort { public static void main(String[] args) { // TODO Auto-generated method stub //冒泡排序 int[] arr = {2,0,-4,9,54,28,8,13,0 阅读全文
posted @ 2022-03-06 22:15 nofight 阅读(49) 评论(0) 推荐(0)
摘要: 错误信息: Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT 解决措施: 删除 AVD 里所有的镜像。 怎样删除 AVD 镜像 在系统环境变量里设置: ANDROID_HOME:这是sdk的路径 阅读全文
posted @ 2020-09-16 18:42 nofight 阅读(159) 评论(0) 推荐(0)
摘要: 采用keep-alive来显示。在组件中: 例如:<keep-alive> 导航栏 </keep-alive> 在index。js中: 在不需要显示的组件路由中添加: meta:{ keepAlive:false; } 在要显示的组件中写: meta:{ keepAlive:true; } eg: 阅读全文
posted @ 2020-09-14 20:56 nofight 阅读(279) 评论(0) 推荐(0)
摘要: 在使用 Android Studio 对源代码进行push到码云时可出错,报错如下: 15:55:01.129: [fuwandai] git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:m 阅读全文
posted @ 2020-09-11 20:09 nofight 阅读(271) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-09-11 20:07 nofight 阅读(10) 评论(0) 推荐(0)
摘要: 2020版本建立时是这样的: 在终端执行vue init webpack 在终端执行 vue init webpack 指令,期间需要确认一些选项。完成后项目目录生成。 终端执行npm install 如果没有呼吸墙外的空气,这一步速度较慢,可能会卡住,可以先执行 npm config set re 阅读全文
posted @ 2020-09-11 20:01 nofight 阅读(17) 评论(0) 推荐(0)
摘要: 在springboot项目整合时出现这样的错误: Description: A component required a bean of type 'com.briup.apps.app02.dao.CourseMapper' that could not be found. Action: Con 阅读全文
posted @ 2020-09-11 19:56 nofight 阅读(26) 评论(0) 推荐(0)
摘要: 在用idea写纯springboot项目中,实现后台登录过程,要用templates文件夹下的html页面,但一直显示不出来。解决办法: 在pom.xml中添加 <dependency> <groupId>org.springframework.boot</groupId> <artifactId> 阅读全文
posted @ 2020-09-11 19:52 nofight 阅读(31) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示