摘要:
用到了栈 class Solution { public int[] dailyTemperatures(int[] T) { if(T==null||T.length==0) return T; int[] res = new int[T.length]; Stack<Integer> stack 阅读全文
摘要:
时间空间都不咋样的一个解法 class Solution { public boolean isValid(String s) { if(s==null||s.length()%2==1) return false; Stack<String> stack = new Stack<>(); for( 阅读全文