diff --git a/Dynamic Programming/Climbing stairs/program.c b/Dynamic Programming/Climbing stairs/program.c deleted file mode 100644 index 601a2f6c..00000000 --- a/Dynamic Programming/Climbing stairs/program.c +++ /dev/null @@ -1,26 +0,0 @@ -#include - -int climbStairs(int n) -{ - if (n == 0 || n == 1) - { - return 1; - } - - int dp[n + 1]; - dp[0] = dp[1] = 1; - - for (int i = 2; i <= n; i++) - { - dp[i] = dp[i - 1] + dp[i - 2]; - } - - return dp[n]; -} - -int main() -{ - int n = 5; // Example input - printf("Ways to climb %d stairs: %d\n", n, climbStairs(n)); - return 0; -}