码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
Single Number
题目描述:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime compl...
分类:其他好文   时间:2014-09-30 00:53:01    阅读次数:216
Two Sum
题目描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:其他好文   时间:2014-09-30 00:24:31    阅读次数:208
[LeetCode]Median of Two Sorted Arrays
here are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O...
分类:其他好文   时间:2014-09-30 00:05:21    阅读次数:274
Example of how to use both JDK 7 and JDK 8 in one build.--reference
JDK 8 ReleasedMost of us won’t be able to use/deploy JDK 8 in production for a looong time. But that shouldn’t stop us from using it, right?It should ...
分类:其他好文   时间:2014-09-29 11:49:37    阅读次数:147
[LeetCode]Swap Nodes in Pairs 成对交换
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-09-29 01:40:57    阅读次数:297
leetcode - Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-09-28 14:33:56    阅读次数:178
Java learning notes (1):Basic Knowlege points
Basic Knowlege points:1: it's necessary that there is only one public class in per .java file2: .java file name should better to same as class name3: ...
分类:编程语言   时间:2014-09-28 13:23:52    阅读次数:313
HDU - 5053 the Sum of Cube
Problem Description A range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range.   Input The first line of the input is T(1 Each...
分类:其他好文   时间:2014-09-28 01:35:40    阅读次数:151
[LeetCode]Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-09-27 23:31:00    阅读次数:186
Single Number II
题目描述:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime...
分类:其他好文   时间:2014-09-27 18:53:40    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!