H-Index II
Total Accepted: 24331 Total
Submissions: 74459 Difficulty: Medium
Follow up for H-Index:
What if the citations array is sorted in ascending order? Could you opti...
分类:
其他好文 时间:
2016-06-02 14:05:23
阅读次数:
161
题目链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
题目:
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to c...
分类:
其他好文 时间:
2016-06-02 13:53:16
阅读次数:
91
题目链接:https://leetcode.com/problems/kth-largest-element-in-an-array/
题目:
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kt...
分类:
其他好文 时间:
2016-06-02 13:52:20
阅读次数:
126
Increasing Triplet Subsequence
Total Accepted: 14818 Total
Submissions: 43443 Difficulty: Medium
Given an unsorted array return whether an increasing subsequence of length 3 ...
分类:
其他好文 时间:
2016-06-02 13:50:26
阅读次数:
148
array = [1,2,3,6,5,4,28,2,1,9,3,0,200,2,9,3,2,98,33,988,22,0,223,0,33,78,222,88,32,0,238,883,2,0,23] for i in range(len(array)): for j in range(i): if... ...
分类:
编程语言 时间:
2016-06-02 13:30:17
阅读次数:
186
/** * 验证身份证号 * @param $vStr * @return bool */ function isCreditNo($vStr) { $vCity = array( '11','12','13','14','15','21','22', '23','31','32','33','34 ...
分类:
Web程序 时间:
2016-06-02 13:26:43
阅读次数:
181
数组: 特点:1.可以存储任意类型的数据 2.可以不连续 3.可以是索引的,也可以是关联的。 定义数组的第一种方式(定义简单的索引数组) $attr=array(1,2,3); 定义数组的第二种方式(赋值定义) $attr[]=1; $attr[]=2; $attr[]=3; 定义数组的第三种方式( ...
分类:
编程语言 时间:
2016-06-02 13:24:48
阅读次数:
335