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 10%
tree
#3
30 c.
Top 18%
Shanethegamer
voytxt
Natanaelel
#4
31 c.
Top 23%
JoKing
AlephSquirrel
#5
32 c.
Top 28%
sean
Amaru333
#6
33 c.
Top 36%
madeforlosers
Europe2048
500error
#7
34 c.
Top 41%
Salutations45
Thomasdcrt
#8
36 c.
Top 46%
CorentinTh
maximec-indy
#9
39 c.
Top 49%
marc-indy
#10
40 c.
Top 51%
SephQ
#11
41 c.
Top 56%
scpchicken
davyboyh
#12
42 c.
Top 64%
KrausRaus
CatsAreFluffy
Alex
#13
43 c.
Top 69%
fuzzylojik-golf
targrik
#14
45 c.
Top 72%
XenThe
#15
46 c.
Top 74%
Bull
#16
48 c.
Top 77%
val
#17
52 c.
Top 82%
Pascal
smclaughlin-cf
#18
54 c.
Top 87%
ComputerKWasTaken
Tony
#19
62 c.
Top 90%
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