包含标签:leetcode 的文章
-
LeetCode639. Decode Ways II——动态规划
文章目录 一、题目 二、题解 一、题目 A message containing letters from A-Z can be encoded into numbers using the following mapping: ‘A’ -&g…… -
2024.1.27力扣每日一题——最大合金数
2024.1.27 题目来源 我的题解 方法一 二分查找 题目来源 力扣每日一题;题序:2861 我的题解 方法一 二分查找 使用二分查找,下界为0,…… -
LeetCode541. 反转字符串 II
541. 反转字符串 II 给定一个字符串 s 和一个整数 k,从字符串开头算起,每计数至 2k 个字符,就反转这 2k 字符中的前 k 个字符。 如果剩余字符少于 k 个…… -
力扣题目训练(7)
2024年1月31日力扣题目训练 2024年1月31日力扣题目训练 387. 字符串中的第一个唯一字符 389. 找不同 401. 二进制手表 109. 有序链表转换二叉搜索树 114. …… -
-
-
-
LeetCode1504. Count Submatrices With All Ones
文章目录 一、题目 二、题解 一、题目 Given an m x n binary matrix mat, return the number of submatrices that have all ones. Example 1: Inpu…… -
力扣题目训练(2)
2024年1月26日力扣题目训练 2024年1月26日力扣题目训练 263. 丑数 268. 丢失的数字 283. 移动零 86. 分隔链表 89. 格雷编码 37. 解数独 2024年1月26…… -
2024.1.26每日一题
LeetCode 边权重均等查询 2846. 边权重均等查询 - 力扣(LeetCode) 题目描述 现有一棵由 n 个节点组成的无向树,节点按从 0 到 n - 1 编号。给你一个整数……