Skip to content

Commit

Permalink
이슈 #342에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent 3408b2a commit 6f61ccf
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>

using namespace std;

vector<int> solution(vector<int> numbers, int num1, int num2) {
vector<int> answer(numbers.begin() + num1, numbers.begin() + num2 + 1);
return answer;
}

0 comments on commit 6f61ccf

Please sign in to comment.