摘要:
题目:Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to determine if a given target is in the array.解题思路:该题与Search in Rotated Sorted Array的主要区别在于需要考虑A[low]与A[mid]相等、A[mid]与A[high]相等以及A[low]A[m 阅读全文
posted @ 2014-03-07 22:07
UsSam
阅读(113)
评论(0)
推荐(0)
浙公网安备 33010602011771号