Maximum in sorted and rotated list

Sign in to test your solution.