you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 3 years ago

Any algorithm can be O(1) if you cache all the answers beforehand.

  • source
  • parent