简单题IGiven 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 su...
分类:
其他好文 时间:
2015-06-10 06:33:31
阅读次数:
101
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
编程语言 时间:
2015-06-09 23:16:23
阅读次数:
144
Give an array of integers,find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two num...
分类:
其他好文 时间:
2015-06-09 21:25:47
阅读次数:
127
错误状况最近项目SVN每次更新项目都会出现Can’t open file ‘项目目录/.svn/tmp/text-base/xxx.xml.svn-base’类似的错误,同时导致项目目录被Locked,只有执行clean up才能进行解锁。同时,针对单个文件或文件夹的更新操作却没有问题。其中错误信息中“xxx.xml”文件为导致错误的文件。原因分析及查找:
1、浏览SVN资源库,查看出错的xxx....
分类:
其他好文 时间:
2015-06-09 20:10:28
阅读次数:
145
除了以前版本的iScroll的特性以外,iScroll 4还包括如下的特性: (1)缩放(Pinch/Zoom) (2)拉动刷新(Pull up/down to refresh) (3)速度和性能提升 (4)精确捕捉元素 (5)自定义滚动条 友情提示:iScroll 4并不是iScroll 3的简易...
分类:
移动开发 时间:
2015-06-09 19:48:24
阅读次数:
159
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
题目解读:
将一个矩阵顺时针旋转90度。
方法一:
如下图所示,先转置,之后和变换的单位矩阵相乘...
分类:
其他好文 时间:
2015-06-09 17:23:38
阅读次数:
129
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where in...
分类:
其他好文 时间:
2015-06-09 17:12:28
阅读次数:
97
打开网址https://www.startssl.com/?app=12,选择Sign-up注册。输入个人注册信息 需注意以下几点:(1)地址必须详细,否则你会收到这样的邮件: Please provide us with your street address and house number o...
分类:
其他好文 时间:
2015-06-09 16:49:44
阅读次数:
122
My first try was DFS by intuition, but it ended up with MLE. So, the expected solution is to use stack:class Solution { struct Node { Nod...
分类:
其他好文 时间:
2015-06-09 15:25:31
阅读次数:
115
安装homebrew
homebrew是mac下非常好用的包管理器,会自动安装相关的依赖包,将你从繁琐的软件依赖安装中解放出来。
安装homebrew也非常简单,只要在终端中输入:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
homebrew的常用命令:
brew up...
分类:
数据库 时间:
2015-06-09 13:54:13
阅读次数:
166