프로그래머스37 프로그래머스] 타켓 넘버 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. 프로그래머스] JadenCase 문자열 만들기 Kotlin class Solution { fun solution(s: String): String { val answer = s.toMutableList() for(i in answer.indices) { // 다 소문자로 만들고 if(answer[i].isUpperCase()) { answer[i] = answer[i].toLowerCase() } // 조건 맞는거만 대문자로 변환 if(i == 0 && answer[i].isLowerCase()) { answer[i] = answer[i.. 2025. 5. 23. 프로그래머스] 의상 Kotlin https://school.programmers.co.kr/learn/courses/30/lessons/42578?language=kotlin 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr https://seedpotato.tistory.com/329 [프로그래머스] - 의상(Kotlin)https://school.programmers.co.kr/learn/courses/30/lessons/42578 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는seedpotato.tistory.com class Solution { .. 2025. 5. 23. 89] 프로그래머스 x 사이의 개수 Kotlin class Solution { fun solution(myString: String): IntArray { var answer = mutableListOf() var splitStr = myString.split('x') for (str in splitStr) { answer.add(str.length) } return answer.toIntArray() } } class Solution { fun solution(myString: String): IntArray { var answer: IntArray = intArrayOf() var list = myString.split("x") for (i in list) { answer += i.length } return answer } } class Solu.. 2023. 12. 15. 이전 1 2 3 4 ··· 10 다음