5 lines C++ implementation
class Solution {\n    public:\n        int findMin(vector<int>& nums) {\n            int start=0, end=nums.size()-1;\n            while(end>start){\n           
    class Solution {\n    public:\n        int findMin(vector<int>& nums) {\n            int start=0, end=nums.size()-1;\n            while(end>start){\n                int mid=start+(end-start)/2;\n                if(nums[mid]<nums[end]) end=mid;\n                else start=mid+1;\n            }\n            return nums[start];\n        }\n    };
[]