Leetcode 0268. Missing Number
Posted on Mon 09 December 2024 in Leetcode • Tagged with math
Question Link : https://leetcode.com/problems/missing-number/
Difficulty: Easy
Premium: False
Question
Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. Example 1:
Input: nums = [3,0,1] Output: 2 Explanation: n = 3 …
Continue reading