One pass of the array to get the min, max, and sum. Subtract that sum from the sum that youโd expect if the missing element were present, which would be (length+1)(min+max)/2
26.02.2025 04:59
๐ 2
๐ 0
๐ฌ 1
๐ 0