JAVA_LeetCode 388_Longest Absolute File Path 풀이 class Solution { public int lengthLongestPath(String input) { // depth 값(index)별로 해당 depth까지의 누적 경로 길이를 저장 int[] lengthAtDepth = new int[input.length() + 1]; int max = 0, depth = 0, fullPathLength = 0; // 파일 시스템을 줄 단위로 분해 String[] lines = input.split("\n"); for(String line : lines){ depth = line.lastIndexOf('\t') + 1; // 현재 라인의 depth 계산 String name = line.substring(depth); // 이름 추출 // 파일 확인(현재 depth까지의 경로 길이 + 파일명 길이를 더함) 또는 디렉터리 확인(다음 depth의 누적 경로...