본문 바로가기

알고리즘234

[MySQL/PGS] Lv.2 : 고양이와 개는 몇 마리 있을까 https://school.programmers.co.kr/learn/courses/30/lessons/59040 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr프로그래머스 레벨 2 mysqlgroup by 응용 문제고양이를 개보다 먼저 조회하라고 하므로, animal type으로 order by를 적용해주었다! 나의 풀이select ANIMAL_TYPE, count(*) as countfrom ANIMAL_INSgroup by ANIMAL_TYPEorder by ANIMAL_TYPE; 2025. 6. 30.
[PCCP] 프로그래머스 코딩전문역량인증(C++) Lv.4 취득 후기🌟 채용 코테 특별시험을 pccp로 치길래레벨 2를 목표로 했는데,, 갑자기 레벨 4를 받아버림나 꽤나 성장했을지도....?! 난이도는 이전에 쳐본 것 보다 쉬웠다꾸준한 노력의 덕도 있겠지만 코테는 역시 운빨요소도 작용하는 것 같다 ㅎ.ㅎ성적이 1분만에 나와서 마음이 편했다~~😊4문제 다 풀었는데(기본 테케 통과), 아마 효율성에서 감점이 있었던 것 같음 2025. 6. 28.
[C++/PGS] Lv.2 : 요격 시스템 https://school.programmers.co.kr/learn/courses/30/lessons/181188 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr프로그래머스 레벨2.그리디 유형의 문제이다처음에 map으로 삽질하다가 힌트 보고 해결했다🥹 타겟의 시작점이 기존의 끝점 이상이라면 answer+1을 해주면 답이 나온다! 나의 풀이#include #include #include #include using namespace std;bool comp(vector a, vector b){ if(a[1]==b[1]) return a[0]> targets) { int answer = 0; int.. 2025. 6. 18.
[C++/PGS] Lv.1 : 크레인 인형뽑기 게임(2019 카카오) https://school.programmers.co.kr/learn/courses/30/lessons/64061 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr프로그래머스 레벨 1스택을 활용하면 간단하게 해결할 수 있다! 나의 풀이#include #include #include #include using namespace std;int solution(vector> board, vector moves) { int answer = 0; int n = board.size(); stack st; for(int num: moves){ int move = num - 1; i.. 2025. 6. 18.
[C++/PGS] Lv.1 : 신규 아이디 추천(2021 KAKAO) https://school.programmers.co.kr/learn/courses/30/lessons/72410 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr프로그래머스 레벨1.단순하게 조건 하나하나를 처리하며 구현하는 문제!3단계가 조금 까다로운데, 점 갯수를 누적시키며 점이 나오다가 멈췄을 때 ' . '을 하나만 추가해주면 된다 나의 풀이#include #include #include #include using namespace std;string solution(string new_id) { // 1 for(int j=0; j='A' && t='a' && t='0' && t0 && new_i.. 2025. 6. 18.
[C++/PGS] Lv.1 : 유연근무제 https://school.programmers.co.kr/learn/courses/30/lessons/388351 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr프로그래머스 레벨1. 정답률 49%2025 프로그래머스 코드챌린지 1차 예선Level 1인데도 불구하고 정답률이 낮고 조건이 많은 문제였다! 나의 풀이#include #include #include using namespace std;int solution(vector schedules, vector> timelogs, int startday) { int answer = 0; for(int i=0; i7) day = 1; .. 2025. 6. 13.
728x90
반응형