Not everything can be done in constant time, that's O(k)
You're viewing a single thread.
Oh my god, that's inefficient as hell.