01 2015 档案

摘要:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord... 阅读全文
posted @ 2015-01-30 05:13 Phoebe815 阅读(145) 评论(0) 推荐(0)
摘要:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta... 阅读全文
posted @ 2015-01-30 02:23 Phoebe815 阅读(144) 评论(0) 推荐(0)
摘要:http://www.acmerblog.com/leetcode-lru-cache-lru-5745.htmlhttps://oj.leetcode.com/discuss/1188/java-is-linkedhashmap-considered-cheatinghttp://docs.ora... 阅读全文
posted @ 2015-01-28 15:38 Phoebe815 阅读(200) 评论(0) 推荐(0)
摘要:(转)http://www.cnblogs.com/hubingxu/archive/2012/02/21/2361281.htmlimportjava.util.HashMap;importjava.util.Iterator;importjava.util.LinkedHashMap;impor... 阅读全文
posted @ 2015-01-28 10:21 Phoebe815 阅读(402) 评论(0) 推荐(0)
摘要:http://book.douban.com/annotation/15154366/Q: java.util.Arrays 中使用的 sort 采用的是什么算法?A: java中Arrays.sort使用了两种排序方法,quick sort 和优化的 merge sort。Q: 为什么采用两种排序... 阅读全文
posted @ 2015-01-26 07:13 Phoebe815 阅读(2864) 评论(0) 推荐(0)
摘要:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret... 阅读全文
posted @ 2015-01-26 04:54 Phoebe815 阅读(146) 评论(0) 推荐(0)
摘要:Table:Person+-------------+---------+| Column Name | Type |+-------------+---------+| PersonId | int || FirstName | varchar || LastName ... 阅读全文
posted @ 2015-01-15 08:02 Phoebe815 阅读(759) 评论(0) 推荐(0)