
Algorithm/프로그래머스
[알고리즘] 리스트 자르기 Java
import java.util.ArrayList; import java.util.List; class Solution { public int[] solution(int n, int[] slicer, int[] num_list) { List list = new ArrayList(); switch (n) { case 1: for (int i = 0; i