This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Main { | |
public static Scanner input = new Scanner(System.in); | |
public static void main(String[] args) { | |
String s = input.next(); | |
String t = input.next(); | |
Solution solution = new Solution() | |
System.out.println(solution.minWindow(s, t)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedList; | |
import java.util.Queue; | |
public class SerializeDeserializeBinaryTree { | |
//Definition for a binary tree node. | |
public class TreeNode { | |
int val; | |
TreeNode left; | |
TreeNode right; | |
TreeNode(int x) { val = x; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
class LetterCombinations | |
{ | |
private List<String> combinations = new ArrayList<>(); | |
private Map<Character, String> letters = Map.of( | |
'2', "abc", '3', "def", '4', "ghi", '5', "jkl", | |
'6', "mno", '7', "pqrs", '8', "tuv", '9', "wxyz"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
import java.util.Stack; | |
public class ExclusiveTimeOfFunction { | |
public static Scanner input = new Scanner(System.in); | |
public static void main(String[] args) { | |
int n; | |
int logsNum; |
NewerOlder