This file contains 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
Demo |
This file contains 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.io.File; | |
import java.util.Scanner; | |
class Main { | |
static int maxLevel = 0; | |
static String deepestFileName = null; | |
static int currentLevel = 0; | |
static String deepestPath = null; | |
static Scanner sc = new Scanner(System.in); |