https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii



Runtime: 0 ms, faster than 100.00% of Java online submissions for Find Minimum in Rotated Sorted Array II.
Memory Usage: 39.1 MB, less than 24.65% of Java online submissions for Find Minimum in Rotated Sorted Array II.



```java
class Solution {
    int min_value;
    public int findMin(int[] nums) {
        //2:54
        if (nums.length == 1) {
            return nums[0];
        } else {
            min_value = nums[0];
            for (int i : nums) {
                if (i < min_value) {
                    min_value = i;
                }
            }
            return min_value;
        }
        //2:55
    }
}
```