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 4%
lydxn
#2
29 c.
Top 7%
tree
#3
30 c.
Top 19%
Shanethegamer
Natanaelel
voytxt
#4
31 c.
Top 26%
JoKing
AlephSquirrel
#5
32 c.
Top 30%
sean
#6
33 c.
Top 33%
500error
#7
34 c.
Top 37%
Thomasdcrt
#8
36 c.
Top 48%
maximec-indy
Salutations45
CorentinTh
#9
38 c.
Top 52%
madeforlosers
#10
39 c.
Top 56%
marc-indy
#11
40 c.
Top 59%
SephQ
#12
41 c.
Top 67%
davyboyh
scpchicken
#13
42 c.
Top 74%
KrausRaus
CatsAreFluffy
#14
45 c.
Top 78%
fuzzylojik-golf
#15
48 c.
Top 81%
val
#16
52 c.
Top 85%
Pascal
#17
54 c.
Top 93%
ComputerKWasTaken
Tony
#18
62 c.
Top 96%
TooBusyForYou
#19
458 c.
Top 100%
Sidd5arth