dfs1 프로그래머스] 타켓 넘버 Kotlin https://school.programmers.co.kr/learn/courses/30/lessons/43165 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr class Solution { fun solution(numbers: IntArray, target: Int): Int { var answer = 0 fun dfs(size : Int, res: Int) { if(size == numbers.size) { // 끝까지 연산했을때 target과 같으면 answer++ if(res == ta.. 2025. 5. 28. 이전 1 다음