[Link] https://www.acmicpc.net/problem/1967 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void main(String...
BOJ. Diameter of Tree (1167)
[Link] https://www.acmicpc.net/problem/1167 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void main(String...
BOJ. Binary Search Tree (5639)
[Link] https://www.acmicpc.net/problem/5639 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void main(String...
BOJ. Maximum and Minimum Values (2357)
[Link] https://www.acmicpc.net/problem/2357 import java.util.*; import java.io.*; public class Main { static BufferedReader br; public static void main(String[] args) throws IOException { b...
BOJ. Find Parent In Tree (11725)
[Link] https://www.acmicpc.net/problem/11725 import java.util.*; import java.io.*; public class Main { static BufferedReader br; public static void main(String[] args) throws IOException { ...
BOJ. Cycle game (20040)
[Link] https://www.acmicpc.net/problem/20040 import java.util.*; import java.io.*; public class Main { static BufferedReader br; public static void main(String[] args) throws IOException { ...
LeetCode. 131. Palindrome Partitioning
[Link] https://leetcode.com/problems/palindrome-partitioning/ //optimized with dp(less substring function called) class Solution { public List<List<String>> partition(String s) {...
BOJ. Friend Network (4195)
[Link] https://www.acmicpc.net/problem/4195 import java.util.*; import java.io.*; public class Main { static BufferedReader br; public static void main(String[] args) throws IOException { b...
BOJ. Let's go on a trip (1976)
[Link] https://www.acmicpc.net/problem/1976 import java.util.*; import java.io.*; public class Main { static BufferedReader br; public static void main(String[] args) throws IOException { b...
BOJ. Merge Files (11066)
[Link] https://www.acmicpc.net/problem/11066 import java.util.*; import java.io.*; public class Main { static BufferedReader br; public static void main(String[] args) throws IOException { ...