leetcode第346场周赛
LeetCode 2696. 删除子串后的字符串最小长度class Solution { public int minLength(String s) { while(s.contains("AB") || s.contains("CD")){
leetcode第345场周赛
LeetCode 2682. 找出转圈游戏输家import java.util.*;class Solution { public int[] circularGameLosers(int n, int k) { Set<Integer> set = new Hash
leetcode第104场双周赛
LeetCode 2678. 老人的数目class Solution { public int countSeniors(String[] details) { int res = 0; for (String s : details) { i
leetcode第341场周赛
LeetCode 2643. 一最多的行class Solution { public int[] rowAndMaximumOnes(int[][] mat) { int[] res = new int[2]; int n = mat.length;
leetcode第101场双周赛
LeetCode 2605. 从两个数字数组里生成最小数字class Solution { // time = O(m * n), space = O(1) public int minNumber(int[] nums1, int[] nums2) { int res =
leetcode第99场双周赛
|
LeetCode 2578. 最小和分割class Solution { // time = O(klogk), space = O(k) public int splitNum(int num) { char[] chars = String.valueOf(num).t
ACWING周赛54
好久没写题了,简单题也不会写了AcWing 4428. 字符串import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanne