Daniel McCrystal's Avatar

Daniel McCrystal

@danrm

๐Ÿ’ป๐Ÿ’ญ๐Ÿ‘พ | ๐ŸŽน๐ŸŽธ๐ŸŽถ | โ›ฐ๏ธ๐ŸŒฒ๐Ÿ„ Dreaming of a better way to interact with my computer ๐Ÿ“Washington, DC

23
Followers
144
Following
2
Posts
27.11.2024
Joined
Posts Following

Latest posts by Daniel McCrystal @danrm

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

Is the value of the missing number guaranteed to be between two existing numbers?

26.02.2025 04:45 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0