一次总结两道题,两道题目都比较基础Description:Write a function to
find the longest common prefix string amongst an array of strings.分析:
这道题目最重要的知道什么叫prefix前缀, 否则一不小心就做...
分类:
其他好文 时间:
2014-06-09 21:08:16
阅读次数:
224
方法一:正则分析法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
1、ExtJS下载 4.1 版本: http://www.sencha.com/products/extjs/download/ext-js-4.1.1/1683 3.4 版本:http://www.sencha.com/products/extjs3/download/ext-js-3.4.0/203 2、ExtJS-3.4文档目录 ExtJS...
分类:
Web程序 时间:
2014-06-08 17:23:00
阅读次数:
314
题目
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
extjs4 tree check 级联选择 实现效果:关键代码:
function changeAllNode(node, isCheck) {
allChild(node, isCheck);
allParent(node, isCheck);
function allChild(nodec, isCheckc) {
var chileNodes = n...
分类:
Web程序 时间:
2014-06-08 15:25:20
阅读次数:
222
题目
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
首先需要引入上传控件
/js/ext/examples/ux/fileuploadfield/FileUploadField.js" charset="utf-8">
弹出上传框对应extjs代码
var uploadForm=new Ext.FormPanel({
id:'uploadForm',
width:520,
frame:true,
fileUpload: true,...
分类:
Web程序 时间:
2014-06-08 09:51:37
阅读次数:
314