Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::partial_sum example – pg. 290 #43

Open
ITHelpDec opened this issue Jun 25, 2023 · 0 comments
Open

std::partial_sum example – pg. 290 #43

ITHelpDec opened this issue Jun 25, 2023 · 0 comments

Comments

@ITHelpDec
Copy link

"...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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant