摘要: http://blog.csdn.net/zhangerqing/article/details/8193118 阅读全文
posted @ 2014-10-11 13:50 Phoebe815 阅读(125) 评论(0) 推荐(0) 编辑
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ... 阅读全文
posted @ 2014-10-09 15:39 Phoebe815 阅读(107) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/springcsc/archive/2009/12/03/1616330.html注:StringBuffer类和String一样,也用来代表字符串,只是由于StringBuffer的内部实现方式和String不同,所以StringBuffer在进行字符... 阅读全文
posted @ 2014-10-09 05:14 Phoebe815 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e... 阅读全文
posted @ 2014-10-02 13:49 Phoebe815 阅读(187) 评论(0) 推荐(0) 编辑
摘要: You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenati... 阅读全文
posted @ 2014-10-01 14:57 Phoebe815 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2014-09-30 14:23 Phoebe815 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the... 阅读全文
posted @ 2014-09-29 01:00 Phoebe815 阅读(192) 评论(0) 推荐(0) 编辑
摘要: The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2014-09-28 04:14 Phoebe815 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show corner cas... 阅读全文
posted @ 2014-09-27 15:25 Phoebe815 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 算法思想:http://www.cnblogs.com/lichen782/p/leetcode_minimum_window_substring_3.html 1 public class Solution { 2 public String minWindow(String S, Str... 阅读全文
posted @ 2014-09-26 11:35 Phoebe815 阅读(185) 评论(0) 推荐(0) 编辑