摘要:
题目:Count the number of prime numbers less than a non-negative number, n.Hint:埃拉托斯特尼筛法wiki: http://zh.wikipedia.org/wiki/%E5%9F%83%E6%8B%89%E6%89%98%E6... 阅读全文
posted @ 2015-06-05 07:11
Hygeia
阅读(483)
评论(0)
推荐(0)
摘要:
题目: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 w... 阅读全文
posted @ 2015-06-05 07:08
Hygeia
阅读(164)
评论(0)
推荐(0)
摘要:
Reference: http://www.cnblogs.com/skywang12345/p/3308900.html 阅读全文
posted @ 2015-06-05 06:54
Hygeia
阅读(253)
评论(0)
推荐(0)
摘要:
概要前面,我们已经学习了ArrayList,并了解了fail-fast机制。这一章我们接着学习List的实现类——LinkedList。 和学习ArrayList一样,接下来呢,我们先对LinkedList有个整体认识,然后再学习它的源码;最后再通过实例来学会使用LinkedList。内容包括: 第... 阅读全文
posted @ 2015-06-05 06:36
Hygeia
阅读(687)
评论(0)
推荐(0)
摘要:
1. 定义一个Java数组1 String[] aArray = new String[5];2 String[] bArray = {"a","b","c", "d", "e"};3 String[] cArray = new String[]{"a","b","c","d","e"};第一种是定... 阅读全文
posted @ 2015-06-05 05:57
Hygeia
阅读(199)
评论(0)
推荐(0)
摘要:
Hashtable:1. key和value都不许有null值2. 使用enumeration遍历3. 同步的,每次只有一个线程能够访问4. 在java中Hashtable是H大写,t小写,而HashMap是H大写,M大写HashMap:1. key和value可以有null值2. 使用iterat... 阅读全文
posted @ 2015-06-05 05:33
Hygeia
阅读(353)
评论(0)
推荐(0)
摘要:
发信人: flamingos (flamingos), 信区: JobHunting标 题: 我的System Design总结 发信站: BBS 未名空间站 (Mon Sep 8 02:49:55 2014, 美东)我的面试也结束了 因为知道FLAG这类公司都会问到System Design的问题... 阅读全文
posted @ 2015-06-05 05:29
Hygeia
阅读(951)
评论(0)
推荐(0)

浙公网安备 33010602011771号