摘要:
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
阅读(142)
评论(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
阅读(146)
评论(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
阅读(133)
评论(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
阅读(138)
评论(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
阅读(168)
评论(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
阅读(148)
评论(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
阅读(102)
评论(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
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号