IT/알고리즘
[순열/조합] 기본
public class CM_순열조합 {public static void main(String[] args) {int[] a = new int[]{1,2,3,4};soon(a, 0, 3, 3);System.out.println();johab(new int[3], 0, 4, 3, 0);} public static void soon(int[] data, int index, int totalDataCnt, int choiceDataCnt){int temp;if(index == choiceDataCnt){int[] dd = new int[choiceDataCnt];for(int i=0; i< dd.length; i++){dd[i] = data[i];}System.out.println(Arrays.toString..
2016. 10. 22.