2022年4月15日
摘要: # Write your MySQL query statement below select (select distinct Employee.Salary from Employee order by Employee.Salary desc limit 1 offset 1) as Seco 阅读全文
posted @ 2022-04-15 09:56 黎酒 阅读(16) 评论(0) 推荐(0) 编辑
摘要: class trimBST { public TreeNode trimBST(TreeNode root, int low, int high) { if(root == null){ return root; } if(root.val < low){ return trimBST(root.r 阅读全文
posted @ 2022-04-15 09:45 黎酒 阅读(15) 评论(0) 推荐(0) 编辑
  2022年4月14日
摘要: class GameOfLife { public static void gameOfLife(int[][] board) { int[][] copy = new int[board.length][board[0].length]; for(int i = 0; i < board.leng 阅读全文
posted @ 2022-04-14 19:15 黎酒 阅读(14) 评论(0) 推荐(0) 编辑
摘要: class Solution { public TreeNode searchBST(TreeNode root, int val) { return treeTravsal(root, val); } private TreeNode treeTravsal(TreeNode root, int 阅读全文
posted @ 2022-04-14 18:57 黎酒 阅读(19) 评论(0) 推荐(0) 编辑
  2022年4月12日
摘要: class KthLargestElementInAnArray { public int findKthLargest(int[] nums, int k) { PriorityQueue<Integer> minHeap = new PriorityQueue<>(); for (int i = 阅读全文
posted @ 2022-04-12 10:41 黎酒 阅读(15) 评论(0) 推荐(0) 编辑
  2022年4月10日
摘要: public class BaseballGame { public static int calPoints(String[] ops) { Deque<Integer> stack = new ArrayDeque<>();int sum = 0; for(String op: ops){ if 阅读全文
posted @ 2022-04-10 19:53 黎酒 阅读(29) 评论(0) 推荐(0) 编辑
  2022年4月9日
摘要: java.util.concurrent - Java's low-level concurrency primitives synchronized/volatile/wait/notify/notifyall 常见问题:deadlock 死锁,thread starvation 线程饥饿, ra 阅读全文
posted @ 2022-04-09 18:52 黎酒 阅读(22) 评论(0) 推荐(0) 编辑
  2022年4月7日
摘要: public class MinimumNumberofOperationstoConvertTime { public static int convertTime(String current, String correct) { String[] currentArray = current. 阅读全文
posted @ 2022-04-07 18:16 黎酒 阅读(48) 评论(0) 推荐(0) 编辑
摘要: { "firstName": "John", "lastName": "Smith", "sex": "male", "age": 25, "address": { "streetAddress": "21 2nd Street", "city": "New York", "state": "NY" 阅读全文
posted @ 2022-04-07 17:39 黎酒 阅读(40) 评论(0) 推荐(0) 编辑
摘要: You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You can 阅读全文
posted @ 2022-04-07 17:38 黎酒 阅读(14) 评论(0) 推荐(0) 编辑