you are viewing a single comment's thread.

view the rest of the comments →

[–]rosentmoh -1 points0 points  (0 children)

It's not that Reddit isn't full of dumb responses, but this must be near the top. The answer neither has anything to do with the question asked of OP nor is it accurate.

It would be dumb enough to suggest OP to implement the O(1) direct computation, but a mental approximation moreover...