摘要:
Q: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.A:有重复的元素。bool bisearch(int A[],int begin,int end,int target){ if(begin>end) return false; 阅读全文
posted @ 2013-06-18 10:05
summer_zhou
阅读(172)
评论(0)
推荐(0)
浙公网安备 33010602011771号