Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-06-27 23:13:24
阅读次数:
218
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.
分类:
其他好文 时间:
2014-06-27 23:02:33
阅读次数:
258
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
分类:
其他好文 时间:
2014-06-27 12:11:50
阅读次数:
337
题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should ...
分类:
其他好文 时间:
2014-06-27 11:55:43
阅读次数:
187
一、基本操作1)创建> post={"title":"MyBlog Post", "content":"Here's my blog post.", "date":new Date()}> db.blog.insert(post)2)查看> db.blog.find()或者 db.blog.find...
分类:
数据库 时间:
2014-06-27 11:22:03
阅读次数:
254
题目
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once an...
分类:
其他好文 时间:
2014-06-27 10:24:26
阅读次数:
219
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the tota...
分类:
其他好文 时间:
2014-06-27 09:53:29
阅读次数:
208
题目
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and u...
分类:
其他好文 时间:
2014-06-27 08:30:30
阅读次数:
202
服务器端配置挂载isocd1和cd2mkdir/tmp/cd{1,2}
mount/home/share/cd1.iso/tmp/cd1
mount/home/share/cd2.iso/tmp/cd2
mkdir/var/www/html/yum/Centos6.4_x64-p
rsync-av/tmp/cd1//var/www/html/yum/Centos6.4_x64/
rsync-av/tmp/cd2//var/www/html/yum/Centos6.4_x64/find/var..
分类:
其他好文 时间:
2014-06-27 06:51:28
阅读次数:
389
Excel分列的使用看到一条全国姓氏人数排名前20位的新闻,中间提供了具体数据,但是估计是从word中复制的数据,格式错乱,就用Excel处理下。处理结果如下图:一、函数处理方法单元格说明A列原始数据B–E列分离出的数据B2=mid(A2,1,2)C2=MID($A2,FIND(“”,$A2,1)+1,1)D2=VALUE(..
分类:
其他好文 时间:
2014-06-27 06:33:15
阅读次数:
354