mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-11 00:49:14 +08:00
fix: init of transform_reduce in dynamic_programming
This commit is contained in:
@@ -24,7 +24,7 @@ class catalan_numbers {
|
||||
|
||||
value_type compute_next() {
|
||||
return std::transform_reduce(known.begin(), known.end(), known.rbegin(),
|
||||
static_cast<value_type>(), std::plus<>(),
|
||||
static_cast<value_type>(0), std::plus<>(),
|
||||
std::multiplies<>());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user