码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
152. Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t ...
分类:其他好文   时间:2016-04-17 07:59:43    阅读次数:107
26. Remove Duplicates from Sorted Array
...
分类:其他好文   时间:2016-04-17 07:59:24    阅读次数:120
238. Product of Array Except Self
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except  ...
分类:其他好文   时间:2016-04-17 07:58:32    阅读次数:150
leetcode 66. Plus One(高精度加法)
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a ...
分类:其他好文   时间:2016-04-17 00:29:59    阅读次数:185
leetcode 169. Majority Element 多数投票算法(Boyer-Moore Majority Vote algorithm)
题目: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that ...
分类:编程语言   时间:2016-04-16 23:05:38    阅读次数:284
LeetCode(62)-Two Sum
题目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example: Given nums = [2, 7, 1...
分类:其他好文   时间:2016-04-16 19:17:00    阅读次数:152
LeetCode之18---4Sum
题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note:...
分类:其他好文   时间:2016-04-16 18:58:53    阅读次数:195
JS Array ECMAScript5 Methods
JavaScript 的新版本(ECMAScript 5)中,为数组新增了一些方法。这些方法包括: forEach(f [,o]): 此方法类似于for/in循环,其作用是遍历整个数组并执行函数的某些操作,但它不会遍历数组的属性。它接受一个函数参数,该函数可以有1、2与3个参数。完整的三个参数分别为 ...
分类:Web程序   时间:2016-04-16 18:41:35    阅读次数:139
Spark系列(九)DAGScheduler工作原理
以wordcount为示例进行深入分析 1 objectwordcount{ 2 3 defmain(args:Array[String]){ ... ...
分类:其他好文   时间:2016-04-16 18:29:59    阅读次数:208
java-集合(一)
使用集合的技巧: 看到Array就是数组结构,有角标,查询速度很快。 看到link就是链表结构:增删速度快,而且有特有方法。addFirst; addLast;?removeFirst(); removeLast(); getFirst();getLast(); 看到hash就是哈希表,就要想要哈希 ...
分类:编程语言   时间:2016-04-16 16:55:26    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!