Skip to content

Commit

Permalink
Time: 30 ms (81.28%), Space: 23.3 MB (40.99%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanketkadam143 committed Nov 21, 2022
1 parent d272225 commit 63740f5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 0344-reverse-string/0344-reverse-string.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class Solution {
public:
void reverseString(vector<char>& s) {
char temp;
for(int i=0;i<s.size()/2; i++){
temp=s[i];
s[i]=s[s.size()-i-1];
s[s.size()-i-1]=temp;
}


}
};

0 comments on commit 63740f5

Please sign in to comment.