[level 1] [PCCP 기출문제] 1번 / 동영상 재생기 - 340213
·
코딩테스트/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/340213 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr   import java.util.*;class Solution { public String solution(String video_len, String pos, String op_start, String op_end, String[] commands) { // 전체를 int로 변환 후 (분 + 초) 계산 int video_len_int = (Integer.parseI..
[level 2] 타겟 넘버 - 43165
·
코딩테스트/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/43165 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr class Solution { int answer = 0; public void dfs(int[] numbers, int target, int sum, int depth){ if(target == sum && depth == numbers.length){ answer += 1; return; } if(dep..