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 e963491 commit c7c9110Copy full SHA for c7c9110
math/factorial_memoization.cpp
@@ -54,10 +54,10 @@ uint64_t fact_recursion(uint64_t n) {
54
*/
55
void test_fact_recursion() {
56
// Test cases for factorial computation
57
- assert(fact_recursion(0) == 1);
58
- assert(fact_recursion(1) == 1);
59
- assert(fact_recursion(5) == 120);
60
- assert(fact_recursion(10) == 3628800);
+ assert(math::fact_recursion(0) == 1);
+ assert(math::fact_recursion(1) == 1);
+ assert(math::fact_recursion(5) == 120);
+ assert(math::fact_recursion(10) == 3628800);
61
std::cout << "All test cases passed!\n";
62
}
63
0 commit comments