Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
其他好文 时间:
2019-06-09 18:26:42
阅读次数:
100
DFS搜索是搜索中的一种,即深度优先搜索(Depth First Search),其过程简要来说是对每一个可能的分支路径深入到不能再深入为止,而且每个节点只能访问一次。图示: 如图,这是邻接矩阵,我们要从s走到e,且“*”不能走,求所有方案。 首先,从s出发,标记s 然后通过s只能走到下面一个点,重 ...
分类:
其他好文 时间:
2019-06-09 12:53:51
阅读次数:
69
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ import ... ...
分类:
其他好文 时间:
2019-06-08 15:11:15
阅读次数:
99
MegaCli查看RAID级别: RAID 5输出: 服务器上配置8块300GB的HDD盘,其中使用7块做数据盘(RAID5),因此Number Of Drives为7,而Span Depth为1,剩余1块盘做热备盘,当数据盘发生故障后,热备盘会自动替换发生故障的数据盘,而故障盘被新盘替换后,新盘作 ...
分类:
数据库 时间:
2019-06-07 20:45:55
阅读次数:
145
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2019-06-07 19:33:47
阅读次数:
97
React文档:https://www.reactjscn.com/docs/jsx in depth.html 慢慢学习:对照教程文档,逐句猜解,截图 React官网:https://reactjs.org React中文网站:https://www.reactjscn.com Github地址: ...
分类:
其他好文 时间:
2019-06-03 12:39:21
阅读次数:
89
刚才写了 windows7环境下的http server的安装 记录。现在写一下问题,这个新鲜的。 前几天打开http server时,出现了如下画面 尝试了好几次,也从vivaldi换成了chrome,依旧如此。几经波折,在网上搜到了几个命令: npm list g depth=0 列出你安装过的 ...
1.执行 lsof | grep deleted发现有大量刚刚删除文件的进程存在,kill掉进程(或者重启进程) OK 2.查看磁盘信息:df -lh 3.循环定位最大文件目录:du -h --max-depth=1 4.删除大的文件 5.查看磁盘使用情况 ...
分类:
系统相关 时间:
2019-05-31 12:01:07
阅读次数:
125
指令(来源于:指令对比) 全局卸载 npm uninstall -g yarn global remove 查看安装 npm list -g --depth=0 yarn global list --depth=0 ...
分类:
其他好文 时间:
2019-05-28 17:10:12
阅读次数:
89
CV_8UC3 a) 存放单通道图像中像素:Scalar(255); b) 存放三通道图像中像素:Scalar(255,255,255); Scalar 颜色赋值 预定义类型的结构: CV_(S|U|F)C 其中, (1) bit_depth 比特数 代表8bite\16bite\32bite\64 ...
分类:
其他好文 时间:
2019-05-27 16:26:22
阅读次数:
108