입문코딩테스트(2)
-
[프로그래머스] 코딩테스트 입문 Day 13 with Java
1. 컨트롤 제트 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krclass Solution { public int solution(String s) { String[] list = s.split(" "); int answer = 0; for( int i = 0; i 2. 배열 원소의 길이 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krclass Solution { public int[] solution(String[] strlist) { ..
2025.01.06 -
TIL) 코딩테스트 입문 Day 9 ~ 10 with Java
1) 개미 군단 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krclass Solution { public int solution(int hp) { int result = 0; for( int attack : new int[]{5,3,1} ) { result += hp / attack; hp = hp % attack; } return result; }} 2) 모스부호 (1) 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programme..
2024.12.24