DFS层次遍历,设置层数n,在node中按层数创建该层的数组,dfs时每层加入该层对应数组。 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNo ...
分类:
其他好文 时间:
2021-02-09 12:27:15
阅读次数:
0
1、安装,下载地址:https://github.com/MicrosoftArchive/redis/releases 2、启动, 默认目录:C:\Program Files\Redis\ 服务程序:redis-server.exe 3、远程连接、密码设置 注释掉redis.windows-ser ...
分类:
Web程序 时间:
2021-02-09 12:12:09
阅读次数:
0
Team Name(2.5) Prime Game(2.6) XOR Sums(2.7) Another Tree with Number Theory Multiple Games Cell Shell Bash Matrix Dream and the Multiverse Cut the Ca ...
分类:
其他好文 时间:
2021-02-08 12:12:42
阅读次数:
0
Search in VS Code for multiple terms? 在搜索框输入下面格式即可。 (word1[\s\S]*word2) | (word2[\s\S]*word1) 文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。 ________________________ ...
分类:
其他好文 时间:
2021-02-05 10:34:11
阅读次数:
0
maven 下载了一个新扩展 导致如下错误: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/QianXiao/.m2/repository/ch/qos/ ...
分类:
其他好文 时间:
2021-01-26 11:57:22
阅读次数:
0
思路分析 其实就是递归判断左树和右树,但是一些判断条件需要仔细思考下. cpp /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...
分类:
其他好文 时间:
2021-01-26 11:49:40
阅读次数:
0
1.autocomplete:作用于form或input域,点击时自动弹出历时输入过的数据,点击可快速输入 on:打开此功能 off:关闭此功能 在form上使用时,对整个form有效,但是form下的inout标签可以单独声明 2.autofocus:页面初始化时,自动聚焦到使用此属性的标签 3. ...
分类:
Web程序 时间:
2021-01-18 10:40:00
阅读次数:
0
原题链接 考察:dfs或者bfs 暴力枚举即可,没有什么特别的技巧 dfs:找到了就标记一下,避免继续搜索(因为答案一定在long long里,所以超过18位就可以不用算了) bfs:用G++编译,找到当即退出.注意一定要让所有路径都有返回值否则报错 1 #include <cstdio> 2 #i ...
分类:
其他好文 时间:
2021-01-11 11:20:58
阅读次数:
0
清除未使用的卷 「How To Remove Docker Containers, Images, Volumes, and Networks」 清除没有使用的卷:docker system prune --volumes 从镜像中还原Dockerfile文件 -「How to generate a ...
分类:
其他好文 时间:
2021-01-11 11:04:04
阅读次数:
0
1、在使用eclipse构建基于maven的spring工程时,报下面的错误,如下所示: 1 Multiple annotations found at this line: 2 - cvc-elt.1: Cannot find the declaration of element 'beans'. ...
分类:
其他好文 时间:
2021-01-06 12:07:38
阅读次数:
0