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

changed new_index value #222

Closed
wants to merge 1 commit into from
Closed

changed new_index value #222

wants to merge 1 commit into from

Conversation

KrutikaDesai02
Copy link

Before I made this change in new_index's value, our new updated string had not enough space in char_list so we were overwriting some of the characters. By giving this attribute proper size we can get the perfect output.

@brycedrennan
Copy link
Collaborator

We have a test case and I don't see any characters being overwritten. Note that the problem states that

You may assume that the string has sufficient space at the end to hold the additional characters,

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