Question 21
EasyHow can the space for computing Fibonacci numbers bottom-up be reduced from O(n) to O(1)?
- A.
Use a hash map
- B.
Use recursion
- C.
Sort the table
- D.
Keep only the last two values instead of the whole table
Sign up free to see the answer and a step-by-step explanation.