Skip to content
RED SAGSkills
easy5 pts · first answer countsdynamic-programmingtabulationspace-optimization

Fibonacci with two variables

Bottom-up Fibonacci only needs the last two values at each step. What is the space complexity if you keep just those?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions