摘要: 用到了栈 class Solution { public int[] dailyTemperatures(int[] T) { if(T==null||T.length==0) return T; int[] res = new int[T.length]; Stack<Integer> stack 阅读全文
posted @ 2020-12-22 14:24 fjlruo 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 时间空间都不咋样的一个解法 class Solution { public boolean isValid(String s) { if(s==null||s.length()%2==1) return false; Stack<String> stack = new Stack<>(); for( 阅读全文
posted @ 2020-12-22 11:14 fjlruo 阅读(32) 评论(0) 推荐(0) 编辑