select path || '%' from t_category where depth = 0 and type = 0 用'||'拼接字符串 比如path是/1001/的话 那结果就是/1001/% 数字相加 SELECT 'A'+'B' 结果为0 SELECT "A"+"1" 结果为1 S ...
分类:
数据库 时间:
2017-11-08 14:49:03
阅读次数:
141
cv::Matdepth/dims/channels/step/data/elemSizeThe class Mat represents an n-dimensional dense numerical single-channel or multi-channel array. It can b ...
分类:
其他好文 时间:
2017-11-07 22:06:58
阅读次数:
188
LCA就是最近公共祖先 一个LCA的模板,代码作用注释写有 1 int f[MAXN][30];//表示i往上跳2^j格所到的位置,后面还可以适当的增加维数去维护一些值 2 int depth[MAXN];//表示i的深度 3 void dfs(int st,int father,int depth ...
分类:
其他好文 时间:
2017-11-07 16:19:40
阅读次数:
151
深度优先搜索算法(Depth-First-Search),是搜索算法的一种。它沿着树的深度遍历树的节点,尽可能深的搜索树的分支。当节点v的所有边都己被探寻过,搜索将回溯到发现节点v的那条边的起始节点。这一过程一直进行到已发现从源节点可达的所有节点为止。如果还存在未被发现的节点, 则选择其中一个作为源 ...
分类:
其他好文 时间:
2017-11-02 22:04:50
阅读次数:
238
在JavaScript模块化和闭包和JavaScript-Module-Pattern-In-Depth这两篇文章中,提到了模块化的基本思想,但是在实际项目中模块化和项目人员的分工,组建化开发,打包发布,性能优化,工程化管理都有密切的关系,这么重要的事情,在JavaScript大行其道的今天,不可能 ...
分类:
编程语言 时间:
2017-11-01 14:57:41
阅读次数:
178
打包时 有些目录不需要进行更新: 使用 svn update --set-depth=exclude 进行路径的排除 echo 更新Trunk_QA 排除Resoures下的Scenes等目录 svn update --set-depth=exclude XXX1(需要排除的目录1) svn upd ...
分类:
其他好文 时间:
2017-11-01 13:23:12
阅读次数:
193
一、广度优先算法BFS(Breadth First Search) 基本实现思想 (1)顶点v入队列。 (2)当队列非空时则继续执行,否则算法结束。 (3)出队列取得队头顶点v; (4)查找顶点v的所以子节点,并依次进入队列; (5)转到步骤(2)。 二、深度优先算法DFS(Depth First ...
分类:
其他好文 时间:
2017-10-31 16:52:20
阅读次数:
242
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 ...
分类:
其他好文 时间:
2017-10-28 11:20:46
阅读次数:
164
可以看看这篇博客 http://blog.csdn.net/taily_duan/article/details/52165458 测试图片可以从这里找 https://www.raspberrypi.org/blog/real-time-depth-perception-with-the-comp ...
分类:
编程语言 时间:
2017-10-27 19:55:20
阅读次数:
632
当前目录大小 http://www.cnblogs.com/kobe8/p/3825461.html du -ah --max-depth=1 这个是我想要的结果 a表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度。 解释如下: du命令用来 ...
分类:
系统相关 时间:
2017-10-24 18:23:07
阅读次数:
256