上一页 1 ··· 29 30 31 32 33
摘要: 题目: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 ... 阅读全文
posted @ 2015-06-06 05:53 Hygeia 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目:Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?For example, Given sorted array A = [1,1,1,2,2,3],Your function sho... 阅读全文
posted @ 2015-06-06 05:40 Hygeia 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题目: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 阅读(471) 评论(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 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Reference: http://www.cnblogs.com/skywang12345/p/3308900.html 阅读全文
posted @ 2015-06-05 06:54 Hygeia 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 概要前面,我们已经学习了ArrayList,并了解了fail-fast机制。这一章我们接着学习List的实现类——LinkedList。 和学习ArrayList一样,接下来呢,我们先对LinkedList有个整体认识,然后再学习它的源码;最后再通过实例来学会使用LinkedList。内容包括: 第... 阅读全文
posted @ 2015-06-05 06:36 Hygeia 阅读(650) 评论(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 阅读(190) 评论(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 阅读(345) 评论(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 阅读(909) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-06-04 12:18 Hygeia 阅读(7) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33