class Solution { public int maxDepth(String s) { Stack stack = new Stack<>(); int ans = 0; char[] ch = s.toCharArray(); if (ch.length == 0) return 0; for (int i = 0; i
最大网络秩
class Solution { public int maximalNetworkRank(int n, int[][] roads) { List> list = new ArrayList<>(); for (int i = 0; i ()); } for (int i = 0; i