Skip to content

Commit d83c2cb

Browse files
committed
Update Reverse_Words_in_a_String.cc
1 parent f9cade7 commit d83c2cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Reverse_Words_in_a_String.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//O(1) space solution
2+
// First, normalize the string, then reverse substring and at last reverse the whole string.
23
class Solution {
34
public:
45
void reverseWords(string &s) {

0 commit comments

Comments
 (0)