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 8%
tree
#3
30 c.
Top 20%
Shanethegamer
Natanaelel
voytxt
#4
31 c.
Top 28%
AlephSquirrel
JoKing
#5
32 c.
Top 32%
sean
#6
33 c.
Top 36%
500error
#7
34 c.
Top 40%
Thomasdcrt
#8
36 c.
Top 52%
Salutations45
CorentinTh
maximec-indy
#9
38 c.
Top 56%
madeforlosers
#10
39 c.
Top 60%
marc-indy
#11
41 c.
Top 68%
scpchicken
davyboyh
#12
42 c.
Top 76%
CatsAreFluffy
KrausRaus
#13
45 c.
Top 80%
fuzzylojik-golf
#14
48 c.
Top 84%
val
#15
52 c.
Top 88%
Pascal
#16
54 c.
Top 96%
ComputerKWasTaken
Tony
#17
62 c.
Top 100%
TooBusyForYou