Skip to content

Update 186. Reverse Words in a String II.cpp#4

Open
Starlaps-365 wants to merge 1 commit intooptionalg:masterfrom
Starlaps-365:patch-3
Open

Update 186. Reverse Words in a String II.cpp#4
Starlaps-365 wants to merge 1 commit intooptionalg:masterfrom
Starlaps-365:patch-3

Conversation

@Starlaps-365
Copy link

To reverse the words in a character array s in-place, we can follow these steps:

Reverse the entire character array.
Reverse each word in the reversed array.

To reverse the words in a character array s in-place, we can follow these steps:

Reverse the entire character array.
Reverse each word in the reversed array.
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.

1 participant