码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
LeetCode:H-Index II
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
【Leetcode】Best Time to Buy and Sell Stock
题目链接: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
【Leetcode】Kth Largest Element in an Array
题目链接: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
LeetCode:Increasing Triplet Subsequence
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
153. Find Minimum in Rotated Sorted Array
...
分类:其他好文   时间:2016-06-02 13:32:03    阅读次数:116
python冒泡算法
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
array_multisort 对关联数组进行排序的问题 PHP
...
分类:编程语言   时间:2016-06-02 13:29:46    阅读次数:239
154. Find Minimum in Rotated Sorted Array II
...
分类:其他好文   时间:2016-06-02 13:28:28    阅读次数:99
身份证验证php
/** * 验证身份证号 * @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
PHP数组的定义取值以及遍历方法
数组: 特点:1.可以存储任意类型的数据 2.可以不连续 3.可以是索引的,也可以是关联的。 定义数组的第一种方式(定义简单的索引数组) $attr=array(1,2,3); 定义数组的第二种方式(赋值定义) $attr[]=1; $attr[]=2; $attr[]=3; 定义数组的第三种方式( ...
分类:编程语言   时间:2016-06-02 13:24:48    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!