همه کارتها
Binary Search on a Rotated Sorted Array
A sorted array cyclically rotated by some unknown amount still hides enough order to binary-search it in : there is exactly one "drop" where , and at every midpoint one half is guaranteed sorted, so you can find the pivot, the minimum, the maximum, or any target in logarithmic time.
کارت الگوریتم کنکور ارشد علوم کامپیوتر