Showing posts with label Rotated Arrays. Show all posts
Showing posts with label Rotated Arrays. Show all posts

Saturday, April 9, 2011

Find Minimum element in sorted but rotated array

Input:
6 5 4 2 3
Output:
Elements in the array:
6 5 4 2 3
Min:2


Code: