Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner lambda solution | O(n) time complexity solution in Creative category for Missing Number by swagg010164
missing_number = lambda items: ((min(items) + max(items))*(len(items) + 1) // 2) - sum(items)
Oct. 22, 2022