We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63319b7 commit 5bdde22Copy full SHA for 5bdde22
dynamic_programming/factorial_top_down_dp.cpp
@@ -49,16 +49,5 @@ void test_fact_rec() {
49
int main() {
50
// Run test cases
51
test_fact_rec();
52
-
53
- // User interaction loop
54
- // int n;
55
- // std::cout << "Enter a non-negative integer to compute factorial (0 to exit): ";
56
- // std::cin >> n;
57
- // if (n < 0) {
58
- // std::cout << "Please enter a non-negative integer only.\n";
59
- // return 0;
60
- // }
61
- // std::cout << "Factorial of " << n << " = " << fact_rec(n) << std::endl;
62
63
return 0;
64
}
0 commit comments