전체 글245 [프로그래머스] 0 떼기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181847 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include #include using namespace std; string solution(string n_str) { string answer = ""; bool a=true; for(int i=0;i 2024. 1. 31. [프로그래머스] 정사각형으로 만들기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181830 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include #include using namespace std; vector solution(vector arr) { int check; if(arr.size()>arr[0].size()){ check=arr.size()-arr[0].size(); for(int i=0;i 2024. 1. 31. [프로그래머스] 코드 처리하기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181932 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include #include using namespace std; string solution(string code) { string answer = ""; int mode=0; for(int i=0;i 2024. 1. 31. [프로그래머스] 접미사 배열(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181909 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include using namespace std; vector solution(string my_string) { vector answer; for(int i=0;i 2024. 1. 28. [프로그래머스] 접미사인지 확인하기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181908 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include using namespace std; int solution(string my_string, string is_suffix) { int result; vector suffix; for(int i=0;i 2024. 1. 28. [프로그래머스] 접두사인지 확인하기(c++) https://school.programmers.co.kr/learn/courses/30/lessons/181906 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 답 #include using namespace std; int solution(string my_string, string is_prefix) { int result; vector prefix; for(int i=1;imy_string.size()) return 0; for(int i=0;i 2024. 1. 27. 이전 1 ··· 25 26 27 28 29 30 31 ··· 41 다음