From a96b65cbfad7f62f3db6b2eab105e4e25c0414c5 Mon Sep 17 00:00:00 2001 From: Jack Sangdahl Date: Fri, 27 Jun 2025 12:23:02 -0600 Subject: chore: remove old cpp and rust solutions --- other/fibonacci_number.cpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 other/fibonacci_number.cpp (limited to 'other/fibonacci_number.cpp') diff --git a/other/fibonacci_number.cpp b/other/fibonacci_number.cpp deleted file mode 100644 index 69e46ee..0000000 --- a/other/fibonacci_number.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - int fib(int n) { - if (n < 2) - return n; - int ans[n + 1]; - ans[0] = 0; - ans[1] = 1; - for (int i = 2; i <= n; i++) - ans[i] = ans[i - 1] + ans[i - 2]; - return ans[n]; - } -}; - -int main() { - Solution obj; - cout << obj.fib(2); -} -- cgit v1.2.3