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 24%
AlephSquirrel
JoKing
#5
32 c.
Top 30%
Amaru333
sean
#6
33 c.
Top 35%
madeforlosers
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 57%
scpchicken
davyboyh
#12
42 c.
Top 65%
Alex
KrausRaus
CatsAreFluffy
#13
43 c.
Top 70%
fuzzylojik-golf
targrik
#14
45 c.
Top 73%
XenThe
#15
46 c.
Top 76%
Bull
#16
48 c.
Top 78%
val
#17
52 c.
Top 81%
Pascal
#18
54 c.
Top 86%
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