This video is kind of weird. There are a few algorithms in it - one for creating an array of random numbers, one for checking to see if that array has duplicates (this is done in an O(N) time), and then creating a compose function to run both. Not bad.