摘要:
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 @ 2014-04-19 11:34
Awy
阅读(180)
评论(0)
推荐(0)
摘要:
Write a function to find the longest common prefix string amongst an array of strings.思路:题目意思是所有字符串的最长公共前缀。首先我们看两个字符串的最长公共前缀,他们的前缀不可能超过最短字符串的长度。所以在这个长... 阅读全文
posted @ 2014-04-19 10:08
Awy
阅读(137)
评论(0)
推荐(0)

浙公网安备 33010602011771号