摘要: class Solution { int index = 0; public int calculate(String s) { int n = s.length(); Stack<Integer> stack = new Stack(); char pre = '+'; int num = 0; 阅读全文
posted @ 2020-08-14 20:15 Sexyomaru 阅读(113) 评论(0) 推荐(0) 编辑
摘要: class Solution { public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) { int n = nums.length; TreeSet<Integer> set = new TreeSet<>(); 阅读全文
posted @ 2020-08-14 19:53 Sexyomaru 阅读(84) 评论(0) 推荐(0) 编辑
摘要: class Solution { public List<List<Integer>> getSkyline(int[][] buildings) { List<List<Integer>> res = new ArrayList<>(); Node[] nodes = new Node[build 阅读全文
posted @ 2020-08-14 17:32 Sexyomaru 阅读(140) 评论(0) 推荐(0) 编辑