Skip to content

Commit 6f121ec

Browse files
authored
Update factorial_top_down_dp.cpp
modified
1 parent 5bdde22 commit 6f121ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dynamic_programming/factorial_top_down_dp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
#include <iostream>
1515
#include <cassert> // For test cases
16-
16+
#include <cstdint> // For uint64_t
17+
#include <array>
1718
/// Array to store computed factorials for memoization
1819
std::array<uint64_t, 1000> memo{0};
1920

0 commit comments

Comments
 (0)