Daniel McCrystal
danrm.bsky.social
Daniel McCrystal
@danrm.bsky.social
💻💭👾 | 🎹🎸🎶 | ⛰️🌲🍄

Dreaming of a better way to interact with my computer

📍Washington, DC
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
February 26, 2025 at 4:59 AM
Is the value of the missing number guaranteed to be between two existing numbers?
February 26, 2025 at 4:45 AM