Recent Posts
Recent Comments
목록5명씩 (1)
밍쎄의 코딩공간
프로그래머스 LV.0 - 5명씩
import java.util.*; class Solution { public String[] solution(String[] names) { ArrayList list = new ArrayList(); for(int i = 0; i < names.length; i += 5){ list.add(names[i]); } String[] answer = new String[list.size()]; for(int i = 0; i < list.size(); i++) answer[i] = list.get(i); return answer; } } https://school.programmers.co.kr/learn/courses/30/lessons/181886 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지..
프로그래머스/프로그래머스 LV.0
2023. 8. 5. 21:05