2023. 9. 24. 11:49, 알고리즘/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/120854
#include <string>
#include <vector>
using namespace std;
vector<int> solution(vector<string> strlist) {
vector<int> answer;
for(auto c: strlist){
answer.emplace_back(c.size());
}
return answer;
}
'알고리즘 > 프로그래머스' 카테고리의 다른 글
Lv 0. 삼각형의 완성조건 (1) (0) | 2023.09.24 |
---|---|
Lv 0. 중복된 문자 제거 (0) | 2023.09.24 |
Lv 0. 컨트롤 제트 (0) | 2023.09.24 |
Lv 0. 소인수분해 (0) | 2023.09.22 |
Lv 0. 문자열 정렬하기 (1) - 각각의 char가 숫자형태의 캐릭터인지 아닌지 알고싶다면 isdigit() 함수를 사용하자. (0) | 2023.09.22 |
Comments, Trackbacks