随笔分类 - LeetCode
摘要:一、题面 You want to form a target string of lowercase letters. At the beginning, your sequence is target.length '?' marks. You also have a stamp of lower
阅读全文
摘要:一、题面 一、题面 在给定的二维二进制数组 A 中,存在两座岛。(岛是由四面相连的 1 形成的一个最大组。) 现在,我们可以将 0 变为 1,以使两座岛连接起来,变成一座岛。 返回必须翻转的 0 的最小数目。(可以保证答案至少是 1。) 示例 1: 输入:[[0,1],[1,0]] 输出:1 示例
阅读全文
摘要:题目: We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}. (Note that '0' is not included.) Now, we write numb
阅读全文