Same Tree
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and
the n...
分类:
其他好文 时间:
2014-06-19 12:49:17
阅读次数:
301
这是一个很常见的功能,但是找了全网,居然找不到,于是借鉴别人的批处理文件,改了下,就可以把整个目录的全部一次批量转换。、
将这个bat文件暂定为,myConvert.bat,执行时就把这个bat文件放到要转换的目录,然后双击bat,就可以啦。下面把bat文件贴出来:
rem path " "里面内容替换为TexturePacker的安装路径,将bat文件放在图片文件夹直接运行就可以了
@...
Given a binary tree and a sum, find all root-to-leaf paths where each path's
sum equals the given sum.
For example:
Given the below binary tree and
sum = 22,
5
...
分类:
其他好文 时间:
2014-06-15 19:55:39
阅读次数:
191
感觉需要用到命令提示符的地方越来越多了,比如学习python、执行vbs脚本、ping一个IP、运行系统命令等等。这些操作大部分需要cd到某一个目录,而常规的启动命令提示符的方法是win+R,输入cmd,cd [path]。。。太繁琐。于是就想参考git的做法,给右键菜单加个菜单项,直接启动命令提示符并设置为当前路径。。。...
分类:
其他好文 时间:
2014-06-15 19:20:29
阅读次数:
322
su命令和su -命令最大的本质区别就是:
su只是切换了root身份,但Shell环境仍然是普通用户的Shell;
而su -连用户和Shell环境一起切换成root身份了。
只有切换了Shell环境才不会出现PATH环境变量错误。su切换成root用户以后,pwd一下,发现工作目录仍然是普通用户的工作目录;
而用su -命令切换以后,工作目录变成root的工作目录了。用echo $PA...
分类:
系统相关 时间:
2014-06-15 18:52:12
阅读次数:
268
#backup.sh
#!/bin/sh
#
# 第一次执行它的时候它会检查是否有完全备份,否则先创建一个全库备份
# 当你再次运行它的时候,它会根据脚本中的设定来基于之前的全库备份进行增量备份
#ocpyang@126.com
INNOBACKUPEX_PATH=innobackupex #INNOBACKUPEX的命令
INNOBACKUPEXFULL=/usr/bin/$IN...
分类:
数据库 时间:
2014-06-15 17:03:17
阅读次数:
271
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that
adding up all the values along the path equals the given sum.
For example:
Given the below bin...
分类:
其他好文 时间:
2014-06-15 09:34:35
阅读次数:
226
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-06-13 20:36:56
阅读次数:
280
Path Sum:Given a binary tree and a sum, determine
if the tree has a root-to-leaf path such that adding up all the values along the
path equals the giv...
分类:
其他好文 时间:
2014-06-13 16:09:02
阅读次数:
237
##RECORD,help me remember ###Make Lazy Version
Installer 1、Write this LazyVersion Installer DMG to a RAW empty disk 2、Use
Clover l...
分类:
其他好文 时间:
2014-06-13 15:27:01
阅读次数:
349