r/ProgrammerHumor • • 3d ago

Meme dynamicProgramming

Post image
5.7k Upvotes

152 comments sorted by

View all comments

Show parent comment

1

u/-Redstoneboi- 19h ago

heh. there's also the O(log n) time O(1) space version.

or O(n) space if we're counting the expanding integer size.