Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Peak Element In Rotated Array

Difficulty: Easy

Acceptance: 88.00%

Points: 20.00

Given a rotated sorted array of distinct integers, return the peak element in the array. The peak element is the maximum element in the rotated sorted array. The array was originally sorted in ascending order and then rotated at some unknown pivot. The peak element is the point where the rotation occurs and is greater than its neighboring elements.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 = nums.length = 105
  • -104 = nums[i] = 104
  • All values in nums are distinct
Companies:
Samsung
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.