Skip to content

Commit

Permalink
이슈 #310에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent 7204477 commit 9c9ce4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Programmers/배열_원소의_길이.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <string>
#include <vector>

using namespace std;

vector<int> solution(vector<string> strlist) {
vector<int> answer;
for (string str : strlist) {
answer.push_back(str.length());
}

return answer;
}

0 comments on commit 9c9ce4f

Please sign in to comment.