00:01
Okay, this one says, we can give it an integer array slash list are precise an which contains number from zero to n minus two.
00:12
Each number is present at least once, that is if n equals five, the array lets contain constant two values range from zero to three.
00:20
And my name is a single integer value that is present twice.
00:24
We need to find and return that duplicate number present in the...
00:29
Okay, so let's just make some array.
00:32
We'll call it.
00:32
Art and i'll say that it is a list and contains one, two, three, four, four, five, six, for sure.
00:44
So that's all we're ready.
00:45
What we want to know is which number is duplicated.
00:50
And so what we're going to do is we're saying, um, four i in range, when, it.
01:08
Uh, well, what we can do is we can say, um, we'll say n instances, the number of times that number occurred.
01:27
We're going to say n instances of pt, r dot count, r, five.
01:39
So this is going to count up for every single one, how many times that one appears.
01:46
What we need to do that is just figure out which n instances is two...