This comment has been removed by the author.
Hi,Input:6 5 4 2 3It seems this input is not sorted then rotated.if it was rotated you would not need the last else case, as by definition either [low,mid] or ]mid,high] would be sorted
This comment has been removed by the author.
ReplyDeleteHi,
ReplyDeleteInput:
6 5 4 2 3
It seems this input is not sorted then rotated.
if it was rotated you would not need the last else case, as by definition either [low,mid] or ]mid,high] would be sorted