上一页 1 2 3 4 5 6 7 ··· 16 下一页
摘要: Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from t... 阅读全文
posted @ 2014-04-24 02:24 beehard 阅读(136) 评论(0) 推荐(0) 编辑
摘要: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be... 阅读全文
posted @ 2014-04-24 01:59 beehard 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding elemen... 阅读全文
posted @ 2014-04-24 01:57 beehard 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho... 阅读全文
posted @ 2014-04-24 01:52 beehard 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 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 = "ADOBEC... 阅读全文
posted @ 2014-04-24 01:17 beehard 阅读(163) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded messag... 阅读全文
posted @ 2014-04-24 01:03 beehard 阅读(132) 评论(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 concaten... 阅读全文
posted @ 2014-04-24 00:23 beehard 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the l... 阅读全文
posted @ 2014-04-24 00:07 beehard 阅读(106) 评论(0) 推荐(0) 编辑
摘要: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost... 阅读全文
posted @ 2014-04-23 10:54 beehard 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-neg... 阅读全文
posted @ 2014-04-23 08:37 beehard 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 16 下一页