Skip to content

Update introduction.md - change .append() to push_back() - #1044

Merged
siebenschlaefer merged 1 commit into
exercism:mainfrom
wintermute-alias:patch-1
Oct 16, 2026
Merged

siebenschlaefer merged 1 commit into
exercism:mainfrom
wintermute-alias:patch-1

Conversation

@wintermute-alias

Copy link
Copy Markdown
Contributor

Changed result.append(original[rindex]) to result.push_back(original[rindex]) in Approach:Iterative code.

.append() does not compile on Exercism, or on Ubuntu using gcc or clang. Appears to be because append() does not work with empty strings.

Changed result.append(original[rindex]) to result.push_back(original[rindex]) in Approach:Iterative code.

.append() does not compile on Exercism, or on Ubuntu using gcc or clang. Appears to be because append() does not work with empty strings.

@siebenschlaefer siebenschlaefer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Thank you!

@siebenschlaefer
siebenschlaefer merged commit c45e4c6 into exercism:main Oct 16, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants