一次总结两道题,两道题目都比较基础Description:Write a function to
find the longest common prefix string amongst an array of strings.分析:
这道题目最重要的知道什么叫prefix前缀, 否则一不小心就做...
分类:
其他好文 时间:
2014-06-09 21:08:16
阅读次数:
224
合并单元格虽然美观,但是无法进行排序、筛选等操作。只有合并单元格拆分后才可以按常规进行统计。但是普通拆分后,excel仅保留合并单元格数据到区域左上角的单元格。解决方案:选定多个合并单元格,应用本宏即可每个单元格均保留数据:Sub
拆分() Dim c As Range For Each c In ...
分类:
其他好文 时间:
2014-06-09 20:04:16
阅读次数:
268
方法一:正则分析法function getQueryString(name) { var
reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r =
window.location.search.substr(1).m...
分类:
Web程序 时间:
2014-06-09 16:03:15
阅读次数:
293
【Project Browser】 You can drag items from the
project structure list to the Favourites and also save search queries there. The
filters work by add...
分类:
其他好文 时间:
2014-06-09 15:25:46
阅读次数:
282
原题地址:https://oj.leetcode.com/problems/search-for-a-range/题意:Given
a sorted array of integers, find the starting and ending position of a given
target ...
分类:
编程语言 时间:
2014-06-08 21:03:21
阅读次数:
297
题目
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 ...
分类:
其他好文 时间:
2014-06-08 17:06:58
阅读次数:
235
题目
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Cou...
分类:
其他好文 时间:
2014-06-08 15:32:45
阅读次数:
245
题目
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
...
分类:
其他好文 时间:
2014-06-08 15:15:26
阅读次数:
223
linux
grep命令详解http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856896.htmlgrep
(global search regular expression(RE) and print out the line,全面搜索正则...
分类:
系统相关 时间:
2014-06-07 22:50:42
阅读次数:
387
用Python求均值与方差,可以自己写,也可以借助于numpy,不过到底哪个快一点呢?我做了个实验,首先生成9百万个样本:```pythonnlist=range(0,9000000)nlist=[float(i)/1000000
for i in nlist]N=len(nlist)```第二行是...
分类:
编程语言 时间:
2014-06-07 22:48:05
阅读次数:
1623