728x90
반응형
SMALL
#include <string>
#include <vector>
#include <cstring>
using namespace std;
string solution(string my_string, string letter) {
string answer = "";
char target = letter.front();
for(char str:my_string)
if(str!=target)
answer+=str;
return answer;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
| [프로그래머스] 모음 제거 (0) | 2025.09.04 |
|---|---|
| [프로그래머스] 중복된 숫자 개수 (0) | 2025.09.04 |
| [프로그래머스] 제곱수 판별하기 (0) | 2025.09.04 |
| [프로그래머스] 문자 반복 출력하기 (0) | 2025.09.04 |
| [프로그래머스] 문자열안에 문자열 (0) | 2025.09.04 |
댓글