Registrations for the November 2021 System Design Cohort are now open Enroll Today

FIND-MINIMUM-IN-ROTATED-SORTED-ARRAY-II Solution



class Solution {
public:
    int findMin(vector<int> &num) {
        
        int m = num[0];
        for( int i = 1; i < num.size() ; i++ ) {
            m = min(m,num[i]);
        }
        return m;
        
    }
};

470+ Competitive Programming Solutions

If you like what you read subscribe to my newsletter.

I write essays on various engineering topics and share it through my weekly newsletter 👇