by bitmadness · 7y ago · 0 comments
return fibonacci[k]
This is the canonical benefit of memoization, further clarified by this quote: "This solution has an O(k) space and time complexity for the first query."I mean they would be able to deduce it, but they just never made the connection.