The Minion Game

  • + 2 comments

    It may have constant time complexity, but you're doing it N times. If calling len takes a second and N is a million, then that's 999 999 seconds you've wasted. Obviously, calling len won't take a second, but if all you're looking at is the fact that it takes constant time, you won't know that.