2 line solution


  • 0
    S

    public class Solution {
    public int findMin(int[] nums) {
    Arrays.sort(nums);
    return nums[0];
    }
    }

    Why people don't think that way?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.