摘要:
RT https://leetcode.cn/problems/replace-employee-id-with-the-unique-identifier/solution/ select b.unique_id, a.name from Employees a left join Employe 阅读全文
摘要:
简介 二分查找经常搞不清楚边界问题,直接记录模板 code public class Solution extends VersionControl { public int firstBadVersion(int n) { int low = 1; int high = n; int mid; w 阅读全文
摘要:
简介 简单题 code class Solution { public Integer count = 0; public void dfs(StringBuffer time, int [] aws, int rlt, int maxNumber){ if(rlt >= maxNumber) re 阅读全文
摘要:
简介 如何寻求一个数组中的出现次数最多的书 虽然最开始想到了这个方法但是不知道如何去表达,grep就利用了这个算法 class Solution { public int majorityElement(int[] nums) { Integer candidate = null; int coun 阅读全文