摘要: Subsequence With the Minimum Score You are given two strings $s$ and $t$ . You are allowed to remove any number of characters from the string t. The s 阅读全文
posted @ 2023-02-12 22:54 onlyblues 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Substring XOR Queries You are given a binary string s , and a 2D integer array queries where queries[i] = [firsti, secondi] . For the ith query, find 阅读全文
posted @ 2023-02-12 15:49 onlyblues 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Count the Number of Fair Pairs Given a 0-indexed integer array nums of size n and two integers lower and upper , return the number of fair pairs. A pa 阅读全文
posted @ 2023-02-12 15:28 onlyblues 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 找数字 给定一个正整数 $m$ 和一个非负整数 $s$。 请你找到长度为 $m$ 且各位数字之和为 $s$ 的最小和最大非负整数。 要求所求非负整数不得包含前导零。 输入格式 共一行,两个整数 $m,s$。 输出格式 在一行内输出满足条件的最小和最大非负整数。 如果无解,则输出 -1 -1。 数据范 阅读全文
posted @ 2023-02-12 10:16 onlyblues 阅读(50) 评论(0) 推荐(0) 编辑
Web Analytics