전체 글 (61) 썸네일형 리스트형 [java] 백트래킹 중복제거 코드 import java.io.*;import java.util.*;public class Main{ static int arr[]; static boolean visit[]; static int a,b; static StringBuilder sb; public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(br.readLine()); a=Integer.parseInt(st.nextToken()); .. [java] 백트래킹 기본구현코드 import java.io.*;import java.util.*;public class Main{ static int arr[]; static boolean visit[]; static int a,b; static StringBuilder sb; public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(br.readLine()); a=Integer.parseInt(st.nextToken()); b=Integer.parseInt(st.nextToken().. [java]이진트리 구현 코드 import java.io.*;import java.util.*;class Node { char value; Node left; Node right; public Node(char value) { this.value = value; this.left = null; this.right = null; }}public class Test { static Node[] tree; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); .. 이전 1 2 3 4 5 ··· 21 다음