摘要:
10/25 552. Student Attendance Record II 6 个状态间的转换 public int checkRecord(int n) { int M = 1000000007; long a0l0 = 1, a0l1 = 1, a0l2 = 0, a1l0 = 1, a1l 阅读全文
摘要:
区间类问题 1 Missing Interval public List<String> findMissingRanges(int[] nums, int lower, int upper) { List<String> res = new ArrayList<>(); if (nums == n 阅读全文
摘要:
1 Sliding Window Average from Data Stream public class MovingAvage { int id, size; double[] sum; public MovingAvage(int s) { size = s; sum = new doubl 阅读全文