Exercises/#9 Find Minimum in Rotated Sorted Array
#9

Find Minimum in Rotated Sorted Array

MediumπŸ“¦ Arrays
80 XP

Problem

Given a sorted array that has been rotated between 1 and n times, find the minimum element in O(log n) time.

Examples

Input: nums = [3,4,5,1,2]
Output: 1

Input: nums = [4,5,6,7,0,1,2]
Output: 0
binary-searcharray
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

9 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features