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 2b40841 commit 939ca4aCopy full SHA for 939ca4a
dynamic_programming/catalan_numbers.cpp
@@ -24,7 +24,7 @@ class catalan_numbers {
24
25
value_type compute_next() {
26
return std::transform_reduce(known.begin(), known.end(), known.rbegin(),
27
- static_cast<value_type>(), std::plus<>(),
+ static_cast<value_type>(0), std::plus<>(),
28
std::multiplies<>());
29
}
30
0 commit comments