r/ProgrammerHumor • • 7d ago

Meme dynamicProgramming

Post image
6.3k Upvotes

154 comments sorted by

View all comments

Show parent comment

1

u/-Redstoneboi- 5d 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.