摘要:
leetcode 每日一题 面试题 01.05. 一次编辑 class Solution { public boolean oneEditAway(String first, String second) { char[] a = first.toCharArray(); char[] b = se 阅读全文
摘要:
leetcode 每日一题 944. 删列造序 class Solution { public int minDeletionSize(String[] strs) { int num = 0; for (int j = 0; j < strs[0].length(); j++) { char bu 阅读全文
摘要:
leetcode 每日一题 942. 增减字符串匹配 class Solution { public int[] diStringMatch(String s) { int[] arr = new int[s.length()+1]; int l = 0; int r = s.length(); f 阅读全文
摘要:
mysql int(1) 和 int(10) 和 int(11)区别 CREATE TABLE IF NOT EXISTS `test2` (`t1` int(5) NOT NULL,`t2` int(11) unsigned zerofill NOT NULL,`t3` int(11) un 阅读全文
摘要:
leetcode 每日一题 933. 最近的请求次数 class RecentCounter { private List<Integer> list; public RecentCounter() { list = new ArrayList<>(); } public int ping(i 阅读全文
摘要:
leetcode 每日一题 713. 乘积小于 K 的子数组 瞎写,自己都不知道写的什么,缺了条件就补条件 class Solution { public int numSubarrayProductLessThanK(int[] nums, int k) { int end = 0; int su 阅读全文