Missing From Sequence

Find the missing number from a sequence of numbers.

Easy1/10/2024

Problem statement

Given an array of n-1 integers in the range from 0 to n, find the one number that is missing from the sequence.

Problem leaderboard

#
Size
%
Users
#1
28 c.
Top 6%
lydxn
helbling
#2
29 c.
Top 9%
tree
#3
30 c.
Top 17%
Shanethegamer
voytxt
Natanaelel
#4
31 c.
Top 23%
AlephSquirrel
JoKing
#5
32 c.
Top 29%
sean
Amaru333
#6
33 c.
Top 34%
500error
madeforlosers
#7
34 c.
Top 43%
Thomasdcrt
Lv0Sys
Salutations45
#8
36 c.
Top 49%
CorentinTh
maximec-indy
#9
39 c.
Top 51%
marc-indy
#10
40 c.
Top 54%
SephQ
#11
41 c.
Top 60%
scpchicken
davyboyh
#12
42 c.
Top 69%
KrausRaus
CatsAreFluffy
Alex
#13
43 c.
Top 74%
targrik
fuzzylojik-golf
#14
48 c.
Top 77%
val
#15
52 c.
Top 80%
Pascal
#16
54 c.
Top 86%
Tony
ComputerKWasTaken
#17
62 c.
Top 89%
TooBusyForYou
#18
66 c.
Top 91%
Mif712
#19
118 c.
Top 94%
M
#20
270 c.
Top 97%
David
#21
458 c.
Top 100%
Sidd5arth