码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
区域和包装
package array; import java.util.*; public class Test3 { public static void main(String[] args) { // TODO 自动生成的方法存根 Map<String,String> m=new HashMap<St
分类:其他好文   时间:2016-03-12 09:07:27    阅读次数:199
1. 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 ex
分类:其他好文   时间:2016-03-12 09:06:58    阅读次数:155
lintcode-medium-4 Sum
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
分类:其他好文   时间:2016-03-12 08:03:00    阅读次数:193
lintcode-medium-3 Sum 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.
分类:其他好文   时间:2016-03-12 08:02:24    阅读次数:166
lintcode-medium-3 Sum
Given an array S of n integers, are there elements a, b,c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of z
分类:其他好文   时间:2016-03-12 06:44:18    阅读次数:181
包装&工具类
package org.hanqi.array; import java.util.Random; public class BaoZhuang { public static void main(String[] args) { //包装类 Long l=new Long(100); //把字符串
分类:其他好文   时间:2016-03-12 01:27:11    阅读次数:200
16. 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.
分类:其他好文   时间:2016-03-12 01:25:38    阅读次数:169
Pg235课后习题
1.分别向Set集合以及List集合中添加“A”、“a”、“c”、“C”、“a”5个元素,观察重复值“a”能否在List集合以及Set集合中成功添加。 1 package org.hanqi.array; 2 3 import java.util.*; 4 5 public class 实战1 {
分类:其他好文   时间:2016-03-12 01:23:51    阅读次数:281
课本235页2-3题
package org.hanqi.array; import java.util.*; public class Xiti2 { public static void main(String[] args) { List<String> list=new ArrayList<String>();
分类:其他好文   时间:2016-03-12 01:22:01    阅读次数:148
课本235页2-3题
package org.hanqi.array; import java.util.*; public class Xiti2 { public static void main(String[] args) { List<String> list=new ArrayList<String>();
分类:其他好文   时间:2016-03-12 01:21:20    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!