摘要:
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... 阅读全文
posted @ 2015-05-07 23:37
TonyLuis
阅读(194)
评论(0)
推荐(0)
摘要:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target valu... 阅读全文
posted @ 2015-05-07 21:13
TonyLuis
阅读(130)
评论(0)
推荐(0)
摘要:
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon... 阅读全文
posted @ 2015-05-07 19:46
TonyLuis
阅读(129)
评论(0)
推荐(0)
摘要:
Next PermutationTotal Accepted: 33595 Total Submissions: 134095Implement next permutation, which rearranges numbers into the lexicographically next gr... 阅读全文
posted @ 2015-05-07 17:48
TonyLuis
阅读(206)
评论(0)
推荐(0)
摘要:
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca... 阅读全文
posted @ 2015-05-07 16:43
TonyLuis
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号