Skip to content

Commit

Permalink
이슈 #351에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 21, 2024
1 parent e810643 commit 4ca0def
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Programmers/인덱스_바꾸기.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

string solution(string my_string, int num1, int num2) {
swap(my_string[num1], my_string[num2]);
return my_string;
}

0 comments on commit 4ca0def

Please sign in to comment.