Skip to content

Commit

Permalink
이슈 #308에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent c6c9552 commit 3fceb6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Programmers/문자열_뒤집기.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

using namespace std;

string solution(string my_string, int s, int e) {
reverse(my_string.begin() + s, my_string.begin() + e + 1);

string solution(string my_string) {
reverse(my_string.begin(), my_string.end());
return my_string;
}

0 comments on commit 3fceb6a

Please sign in to comment.