Skip to content

std::partial_sum example – pg. 290 #43

@ITHelpDec

Description

@ITHelpDec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions