LeetCode 153. Find Minimum in Rotated Sorted Array Posted on 2021-04-08 Edited on 2024-11-24 In LeetCode 1234567891011121314class Solution {public: int findMin(vector<int>& nums) { int left = 0, right = nums.size() - 1; while (left < right) { int mid = (right + left) / 2; if (nums[mid] < nums[right]) right = mid; else left = mid + 1; } return nums[left]; }};