Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2015-08-02 23:12:12
阅读次数:
219
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2015-08-02 23:11:15
阅读次数:
128
听着李健的《传奇》,敲着dell的键盘,用着windows10的系统,我写下了这篇博客,关于express路由规则的添加。app.js:var express = require('express');var path = require('path');var favicon = require(...
分类:
其他好文 时间:
2015-08-02 22:58:03
阅读次数:
324
1、安装Sublime Package Control
用Ctrl+~打开控制台并在里面输入以下代码:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else N...
分类:
其他好文 时间:
2015-08-02 21:43:48
阅读次数:
164
题目传送门 1 /* 2 题意:从一个数到另外一个数,每次改变一个数字,且每次是素数 3 BFS:先预处理1000到9999的素数,简单BFS一下。我没输出Impossible都AC,数据有点弱 4 */ 5 /*******************************...
分类:
其他好文 时间:
2015-08-02 21:21:00
阅读次数:
117
linux下环境变量$PATH的设置1.输出:echo $PATH export $PATH2.修改该用户的PATH vi ~/.bash_profile PATH=$PATH:$HOME/bin:/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-lin....
分类:
其他好文 时间:
2015-08-02 19:40:33
阅读次数:
107
安装在 Mac 下可以直接使用 homebrew 安装 nginxbrew search nginxbrew install nginx启动 nginx: sudo nginx,访问 8080 应能看到欢迎界面nginx -V 查看 nginx 的启动参数,配置文件的位置默认是--conf-path...
分类:
系统相关 时间:
2015-08-02 18:09:08
阅读次数:
167
which (寻找『运行档』)
[root@www ~]# which [-a] command
选项或参数:
-a :将所有由 PATH 目录中可以找到的命令均列出,而不止第一个被找到的命令名称
范例一:分别用root与一般帐号搜寻 ifconfig 这个命令的完整档名
[root@www ~]# which ifconfig
/sbin/ifconfig
[ro...
分类:
其他好文 时间:
2015-08-02 13:45:13
阅读次数:
129
一,单词替换 1 package main 2 3 import ( 4 "bufio" 5 "fmt" 6 "io" 7 "io/ioutil" 8 "log" 9 "os" 10 "path/filepath" 11 ...
分类:
编程语言 时间:
2015-08-02 11:29:10
阅读次数:
119
题目: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...
分类:
其他好文 时间:
2015-08-02 08:50:43
阅读次数:
91