原题地址:https://oj.leetcode.com/problems/longest-consecutive-sequence/题意:Given
an unsorted array of integers, find the length of the longest consecutive ...
分类:
编程语言 时间:
2014-06-06 23:13:20
阅读次数:
324
Generic.xaml is a particular name, you cannot
rename it.
分类:
其他好文 时间:
2014-06-06 20:47:27
阅读次数:
248
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/题意:Say
you have an array for which theithelement is the price of a given stoc...
分类:
编程语言 时间:
2014-06-06 20:04:46
阅读次数:
400
内容提纲:1.DOM类型2.DOM扩展3.DOM操作内容一.DOM类型DOM基础篇中,我们了解了DOM的节点并且了解怎样查询和操作节点,而本身这些不同的节点,又有着不同的类型。DOM类型类型名说明Node表示所有类型值的统一接口,IE不支持Document表示文档类型Element表示元素节点类型T...
分类:
其他好文 时间:
2014-06-06 20:00:54
阅读次数:
330
算法导论上面快速排序的实现。代码:def partition(array, left, right):
i = left-1 for j in range(left, right): if array[j] <= array[right]: i += ...
分类:
编程语言 时间:
2014-06-06 18:18:13
阅读次数:
351
最近,用到了pdfcrop,用来去除pdf中空白的边。但是使用pdfcrop
--margins 0 *.pdf 后,给出了错误:Error: pdfcrop cannot call ghostscript
但是我已经安装了CTEX,里面已经包含Ghostscript,所以就不知道什么错误。在网上针...
分类:
其他好文 时间:
2014-06-06 16:49:28
阅读次数:
179
动态 变量类型在运行期间确定下来静态 在编译期确定下来强类型 类型不会发生自动变换,弱类型
类型会自动变,比如double+int -> double类型安全 类型对数据访问有严格控制类型不安全 ...Well-typed programs
cannot "go wrong" ...
分类:
编程语言 时间:
2014-06-06 15:36:16
阅读次数:
238
Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-06-06 14:54:28
阅读次数:
221
分享下PHP二维数组如何根据某个字段排序的方法。从两个不同的表中获取各自的4条数据,然后整合(array_merge)成一个数组,再根据数据的创建时间降序排序取前4条。本文记录的要实现的功能类似于
MySQL 中的 ORDER BY,上个项目中有遇到这样的一个需求。要求:从两个不同的表中获取各自的4...
分类:
Web程序 时间:
2014-06-06 12:36:39
阅读次数:
287
function &m($model_name, $params = array(),
$is_new = false){ static $models = array(); $model_hash = md5($model_name .
var_export($params, true...
分类:
其他好文 时间:
2014-06-06 09:14:04
阅读次数:
292