01 2024 档案
摘要:原题链接 class Solution { public int[] plusOne(int[] digits) { int n = digits.length; List<Integer> list = new ArrayList<>(); int cnt = 0; for (int i = n
阅读全文
摘要:原题链接 class Solution { public String simplifyPath(String path) { // 用栈保存路径 Deque<String> stack = new LinkedList<>(); for (String s : path.split("/")) {
阅读全文