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...
阅读全文
摘要:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta...
阅读全文
摘要:http://www.acmerblog.com/leetcode-lru-cache-lru-5745.htmlhttps://oj.leetcode.com/discuss/1188/java-is-linkedhashmap-considered-cheatinghttp://docs.ora...
阅读全文
摘要:(转)http://www.cnblogs.com/hubingxu/archive/2012/02/21/2361281.htmlimportjava.util.HashMap;importjava.util.Iterator;importjava.util.LinkedHashMap;impor...
阅读全文
摘要:http://book.douban.com/annotation/15154366/Q: java.util.Arrays 中使用的 sort 采用的是什么算法?A: java中Arrays.sort使用了两种排序方法,quick sort 和优化的 merge sort。Q: 为什么采用两种排序...
阅读全文
摘要: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...
阅读全文
摘要:Table:Person+-------------+---------+| Column Name | Type |+-------------+---------+| PersonId | int || FirstName | varchar || LastName ...
阅读全文

浙公网安备 33010602011771号