문제 유형Recursion작성 코드import java.util.Arrays;import java.util.Scanner;public class Main { public static int N; public static int M; public static int[] givenNums; public static int[] row; public static boolean[] checks; public static StringBuilder answer; public static void recursive(int depth, int index) { if (depth == M) { for (int i = 0; i 접근 방식이전의 수열 문제와 ..