自从开启了mac的TimeMachine之后,使用了一段时间的mac磁盘空间减少的很多,于是使用du -d1(disk usage and depth is one)命令查看/目录空间的使用情况,发现有一个目录使用了20G,这个目录就是.MobileBackups,Linux/Unix下.开头的文件默认是隐藏的。没有开启TimeMachine是不存在这个目录的。
.MobileBackups...
分类:
其他好文 时间:
2014-10-14 23:18:39
阅读次数:
209
【题目】
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never d...
分类:
其他好文 时间:
2014-10-12 22:29:28
阅读次数:
210
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-10-12 17:54:08
阅读次数:
177
Minimum Depth of Binary Tree
Total Accepted: 25609 Total
Submissions: 86491My Submissions
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the ...
分类:
其他好文 时间:
2014-10-11 17:41:25
阅读次数:
151
1, 打开深度图像帧的方式
对于V1:
hr = m_PNuiSensor->NuiImageStreamOpen(
NUI_IMAGE_TYPE_DEPTH,NUI_IMAGE_RESOLUTION_640x480,0, 2,
m_hNext...
动态规划class Solution: # @param triangle, a list of lists of integers # @return an integer def minimumTotal(self, triangle): depth=len(tr...
分类:
其他好文 时间:
2014-10-10 20:59:14
阅读次数:
202
在OpenCV2中Mat类无疑使占据着核心地位的,前段时间初学OpenCV2时对Mat类有了个初步的了解,见OpenCV2:Mat初学。这几天试着用OpenCV2实现了图像缩小的两种算法:基于等间隔采样和基于局部均值的图像缩小,发现对Mat中的数据布局和一些属性的认知还是懵懵懂懂,本文对Mat的一些...
分类:
其他好文 时间:
2014-10-10 20:07:44
阅读次数:
282
由于线上的空间满了,我先是切到根目录下然后用:#du-h--max-depth=1查看没有发现报满的空间有问题,于是查看是不是有些死进程占用的空间,于是用:#lsof|grepdelete看到好多httpd的进程,上报后同意重启http,直接重启失败报下面的错误:------------------------------------..
分类:
其他好文 时间:
2014-10-09 16:23:19
阅读次数:
260
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 leaf node.
/**
* Definition for binary tree
...
分类:
其他好文 时间:
2014-10-06 16:08:40
阅读次数:
181
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 leaf node.
点击打开原题链接
这个题剑指offer里也有,简单的递归即可,代码很清晰:...
分类:
其他好文 时间:
2014-10-05 22:56:09
阅读次数:
185