码迷,mamicode.com
首页 >  
搜索关键字:minimum depth of bin    ( 47234个结果
/bin/bash: line 0: fg: no job control一般解决方法
测试版本:CDH5.0,(Hadoop2.3)在使用windows调用Hadoop yarn平台的时候,一般都会遇到如下的错误:2014-05-28 17:32:19,761 WARN org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: Exception from container-launch with co...
分类:其他好文   时间:2014-06-03 06:26:17    阅读次数:277
leetcode -day24 Maximum Depth of Binary Tree & Binary Tree Zigzag Level Order Traversal
1、Maximum Depth of Binary Tree 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. clas...
分类:其他好文   时间:2014-06-02 23:13:22    阅读次数:290
expect实现配置机器信任关系
利用expect的交互功能,自动配置信任机器之间的信任关系。代码里会判断机器是否生成了秘钥,如果没有生成过,则自动帮助你执行 ssh-keygen 1 #!/bin/sh 2 3 expect_ssh_copy_id() 4 { 5 if [ "$#" -ne "5" ]; then...
分类:其他好文   时间:2014-06-02 21:46:37    阅读次数:357
【HDOJ】1325 Is It A Tree?
并查集。需要考虑入度。 1 #include 2 #include 3 4 #define MAXNUM 10005 5 6 int bin[MAXNUM]; 7 int degree[MAXNUM]; 8 int nums[MAXNUM]; 9 10 int find(int x) {11...
分类:其他好文   时间:2014-06-02 21:31:31    阅读次数:219
css、js的相互阻塞
先决条件:脚本前面存在外部样式以下试验虽然是在chrome下,但是对于IE8+以及其他浏览器也适用。1、内联脚本(http://jsbin.com/mudab/1) JS Bin 控制台打印结果>2000,可以得出结论:外部样式会阻塞后面内联脚本的执行。2、阻塞型外部脚本...
分类:Web程序   时间:2014-06-02 20:53:46    阅读次数:378
wampserver 2.4 配置虚拟主机
最近用到了wamp环境,想创建一个虚拟主机,可是忘记了,于是百度了一下,把它写下来:环境wampserver 2.4找到安装目录,进入apache安装目录:找到conf 下的 httpd.conf默认是 C:\wamp\bin\apache\Apache2.2.21\conf 下的httpd.con...
分类:其他好文   时间:2014-06-02 20:43:19    阅读次数:307
Linux_shell脚本_遍历文件夹下所有文件
参考:lunar1983的专栏 实现:从给定目录树中grep出含制定字符串的行,并给出所在路径 代码如下所示: #!/bin/sh -if [ $# -ne 2 ] then echo "usage traverse " exitfi{function ergodic(){for file in `...
分类:系统相关   时间:2014-06-02 17:31:29    阅读次数:395
cygwin下清屏的三种方法
1. 做一个clear脚本,放到/bin下去 $vim /bin/clear #!/bin/bash cmd /c cls 2. ctrl + L 3. 在cygwind中install ncurses (in Utils) and then you can use: clear 我倾向于第三种方法...
分类:Windows程序   时间:2014-06-02 17:30:04    阅读次数:424
《使用shell位置变量进行目录文件的备份小脚本》
今天才发现原来位置变量也可以玩的这么爽!!这是使用位置变量进行文件目录备份:#!/bin/bashDATE=`date +%F` //日期以年月日输出tar czf $1.$DATE.tar.gz $1 > /dev/null 2>> /opt/$1.bak.log //打包$1变量包,将错误追加到...
分类:其他好文   时间:2014-06-02 17:28:52    阅读次数:264
DVR_RDK编译报错
DVR_RDK编译报错 abnormal termination of /opt/dm8168/dvr_rdk/../ti_tools/cgt_dsp/cgt6x_7_3_5//bin/cmp6x make[2]: *** [/opt/dm8168/dvr_rdk/../dvr_rdk/build/dvr_rdk/obj/ti816x-evm/c6xdsp/debug/MAIN_APP_c6xdsp_pe674.oe674] Error 1 make[1]: *** [apps] Error 2 m...
分类:其他好文   时间:2014-06-01 09:37:14    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!