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 8%
helbling
lydxn
Lv0Sys
#2
29 c.
Top 11%
tree
#3
30 c.
Top 18%
voytxt
Natanaelel
Shanethegamer
#4
31 c.
Top 24%
AlephSquirrel
JoKing
#5
32 c.
Top 29%
Amaru333
sean
#6
33 c.
Top 37%
Europe2048
madeforlosers
500error
#7
34 c.
Top 42%
Salutations45
Thomasdcrt
#8
36 c.
Top 47%
CorentinTh
maximec-indy
#9
39 c.
Top 50%
marc-indy
#10
40 c.
Top 53%
SephQ
#11
41 c.
Top 58%
davyboyh
scpchicken
#12
42 c.
Top 66%
Alex
CatsAreFluffy
KrausRaus
#13
43 c.
Top 71%
fuzzylojik-golf
targrik
#14
45 c.
Top 74%
XenThe
#15
46 c.
Top 76%
Bull
#16
48 c.
Top 79%
val
#17
52 c.
Top 82%
Pascal
#18
54 c.
Top 87%
ComputerKWasTaken
Tony
#19
62 c.
Top 89%
TooBusyForYou
#20
66 c.
Top 92%
Mif712
#21
118 c.
Top 95%
M
#22
270 c.
Top 97%
David
#23
458 c.
Top 100%
Sidd5arth