ccia_code_samples icon indicating copy to clipboard operation
ccia_code_samples copied to clipboard

`std::partial_sum` example – pg. 290

Open ITHelpDec opened this issue 1 year ago • 0 comments

"...onto the elements in the third and final chunk to get the final result: {1, 3, 6}, {10, 15, 21}, {28, 36, 55}." – pg. 290

The final element in the std::partial_sum calculation should be 45, not 55 (24 + 21).

It appears as 45 further down the page.

"..., and finally after round four you have 1, 3, 6, 10, 15, 21, 28, 36, 45, which is the final answer." – pg. 290

ITHelpDec avatar Jun 25 '23 19:06 ITHelpDec