上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: Problem:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADO... 阅读全文
posted @ 2015-08-24 23:28 airforce 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from ... 阅读全文
posted @ 2015-08-24 04:30 airforce 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Problem:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=[1,1,1,2,2,3],Your function s... 阅读全文
posted @ 2015-08-23 12:36 airforce 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For exam... 阅读全文
posted @ 2015-08-23 00:32 airforce 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a collection of integers that might contain duplicates,nums, return all possible subsets.Note:Elements in a subset must be in non-descen... 阅读全文
posted @ 2015-08-22 12:25 airforce 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following uni... 阅读全文
posted @ 2015-08-22 04:15 airforce 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Problem:Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination shoul... 阅读全文
posted @ 2015-08-22 01:07 airforce 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each... 阅读全文
posted @ 2015-08-21 23:49 airforce 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Problem:Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.link:https://leetco... 阅读全文
posted @ 2015-08-21 10:37 airforce 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Problem: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 sequ... 阅读全文
posted @ 2015-08-21 06:10 airforce 阅读(212) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页