2023. 9. 16. 03:05, 알고리즘/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/120826
#include <string>
#include <vector>
using namespace std;
string solution(string a, string b) {
string answer = "";
for(auto c: a){
if(c==b[0]) continue;
answer+=c;
}
return answer;
}
'알고리즘 > 프로그래머스' 카테고리의 다른 글
Lv 0. 양꼬치 (0) | 2023.09.16 |
---|---|
Lv 0. 각도기 (0) | 2023.09.16 |
Lv 0. 문자 반복 출력하기. (0) | 2023.09.15 |
Lv 0. 짝수 홀수 개수 (0) | 2023.09.15 |
Lv 0. 직삼각형 출력하기 (0) | 2023.09.15 |
Comments, Trackbacks