码迷,mamicode.com
首页 >  
搜索关键字:each    ( 14050个结果
LeetCode: Remove Duplicates from Sorted Array [025]
【题目】 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory. For example, Given input array A ...
分类:其他好文   时间:2014-05-18 18:25:19    阅读次数:272
POJ 3061 Subsequence
Subsequence Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8128   Accepted: 3141 Description A sequence of N positive integers (10 < N < 100 000), each of t...
分类:其他好文   时间:2014-05-18 15:26:37    阅读次数:284
LeetCode 016 3Sum Closest
【题目】 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution. For example, given array S = {...
分类:其他好文   时间:2014-05-18 10:37:57    阅读次数:269
LeetCode: Substring with Concatenation of All Words [029]
【题目】 You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters. For example, given: S:...
分类:其他好文   时间:2014-05-18 08:31:48    阅读次数:228
LeetCode:Evaluate Reverse Polish Notation
题意:            Evaluate the value of an arithmetic expression in Reverse Polish Notation.        Valid operators are +, -, *, /. Each operand may be an integer or another expression.        So...
分类:其他好文   时间:2014-05-18 08:09:15    阅读次数:190
[LeetCode]3Sum Closest
3SumClosest Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution....
分类:其他好文   时间:2014-05-18 05:57:48    阅读次数:244
【LeetCode】Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-05-18 02:11:19    阅读次数:302
Leetcode | Remove Duplicates from Sorted List I && II
Remove Duplicates from Sorted List IGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->...
分类:其他好文   时间:2014-05-18 01:41:31    阅读次数:361
[微软实习生2014]K-th string
很久之前的事情了,微软2014实习生的在线测试题,记录下来以备后用。题目描述:DescriptionConsider a string set that each of them consists of {0, 1} only. All strings in the set have the sam...
分类:其他好文   时间:2014-05-18 00:17:25    阅读次数:280
Install RHadoop with Hadoop 2.2 – Red Hat Linux
PrerequisiteHadoop 2.2 has been installed (and the below installation steps should be applied on each of Hadoop node)Step 1. Install R (by yum)[hadoop...
分类:系统相关   时间:2014-05-17 21:51:24    阅读次数:671
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!