AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Importance of Probability in Streaming Data
If your array is completely random, you're essentially doing a couple comparisons and then immediately skipping 50 elements. So it's only like one 50th of the array that you inspect. That sounds very inefficient, right? It sounds inefficient, but I guess there's could be worse things.