码迷,mamicode.com
首页 >  
搜索关键字:path    ( 29634个结果
Sum Root to Leaf Numbers
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
Binary Tree Maximum Path Sum
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
解决Sublime Text 2中文显示乱码的问题
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
BFS POJ 3126 Prime Path
题目传送门 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
nginx 安装与反向代理测试 under MAC
安装在 Mac 下可以直接使用 homebrew 安装 nginxbrew search nginxbrew install nginx启动 nginx: sudo nginx,访问 8080 应能看到欢迎界面nginx -V 查看 nginx 的启动参数,配置文件的位置默认是--conf-path...
分类:系统相关   时间:2015-08-02 18:09:08    阅读次数:167
Linxu命令与文件的搜索 - which, whereis, locate, find
which (寻找『运行档』) [root@www ~]# which [-a] command 选项或参数: -a :将所有由 PATH 目录中可以找到的命令均列出,而不止第一个被找到的命令名称 范例一:分别用root与一般帐号搜寻 ifconfig 这个命令的完整档名 [root@www ~]# which ifconfig /sbin/ifconfig [ro...
分类:其他好文   时间:2015-08-02 13:45:13    阅读次数:129
《go语言程序设计》学习(三)
一,单词替换 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
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 given sum...
分类:其他好文   时间:2015-08-02 08:50:43    阅读次数:91
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!