commit 132647c453f6fdf3ea81d7bbbffc71d62dc14483
parent 1b4d966bb21f22db7d514e8401e8427282c6333b
Author: AndrewLockVI <andrewlaack1@gmail.com>
Date: Fri, 12 May 2023 13:56:29 -0500
Updated time complexity of code
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fibonacci-number/fibonacci-number.cpp b/fibonacci-number/fibonacci-number.cpp
@@ -1,5 +1,5 @@
//Find the nth value in the fibonacci number sequence.
-//I did this recursively with a time complexity of O(n).
+//I did this recursively with a time complexity of O(2^n).
//Time: 11ms Beats: 47.1%
//Memory: 5.9MB Beats: 94.32%
class Solution {