One Line C# Linq


  • 0
    C

    public int MissingNumber(int[] nums) {
    return Enumerable.Range(0, nums.Length + 1).Except(nums).FirstOrDefault();
    }


Log in to reply
 

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