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%
Lv0Sys
lydxn
helbling
#2
29 c.
Top 11%
tree
#3
30 c.
Top 19%
Natanaelel
voytxt
Shanethegamer
#4
31 c.
Top 25%
AlephSquirrel
JoKing
#5
32 c.
Top 31%
Amaru333
sean
#6
33 c.
Top 36%
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%
scpchicken
davyboyh
#12
42 c.
Top 67%
Alex
KrausRaus
CatsAreFluffy
#13
43 c.
Top 72%
fuzzylojik-golf
targrik
#14
46 c.
Top 75%
Bull
#15
48 c.
Top 78%
val
#16
52 c.
Top 81%
Pascal
#17
54 c.
Top 86%
Tony
ComputerKWasTaken
#18
62 c.
Top 89%
TooBusyForYou
#19
66 c.
Top 92%
Mif712
#20
118 c.
Top 94%
M
#21
270 c.
Top 97%
David
#22
458 c.
Top 100%
Sidd5arth