1894. 找到需要补充粉笔的学生编号[https://leetcode.cn/problems/find-the-student-that-will-replace-the...
1894. 找到需要补充粉笔的学生编号[https://leetcode.cn/problems/find-the-student-that-will-replace-the...
Leetcode 2950. 可整除子串的数量每个英文字母都被映射到一个数字,如下所示。 如果字符串的字符的映射值的总和可以被字符串的长度整除,则该字符串是 可整除 的。给定...
给定一棵二叉树的根节点 root 以及两个整数 p 和 q ,返回该二叉树中值为 p 的结点与值为 q 的结点间的 距离 。两个结点间的 距离 就是从一个结点到另一个结点的路...
下班之后来一题Leetcode 1762有 n 座建筑物。给你一个大小为 n 的整数数组 heights 表示每一个建筑物的高度。建筑物的右边是海洋。如果建筑物可以无障碍地看...
2217. 找到指定长度的回文数[https://leetcode.cn/problems/find-palindrome-with-fixed-length/]给你一个整数...
Leetcode 2847给定一个 正 整数 n,返回一个字符串,表示使其各位数字的乘积等于 n 的 最小正整数,如果不存在这样的数字,则返回 "-1" 。示例 1: 解释:...
721. 账户合并[https://leetcode.cn/problems/accounts-merge/]给定一个列表 accounts,每个元素 accounts[i]...
743. 网络延迟时间[https://leetcode.cn/problems/network-delay-time/]有 n 个网络节点,标记为 1 到 n。给你一个列表...
Leetcode 261 给定编号从 0 到 n - 1 的 n 个结点。给定一个整数 n 和一个 edges 列表,其中 edges[i] = [ai, bi] 表示图中节...
Leetcode 3437Given an integer n, an alternating permutation is a permutation of the fir...
841. 钥匙和房间[https://leetcode.cn/problems/keys-and-rooms/]
1432. 改变一个整数能得到的最大差值[https://leetcode.cn/problems/max-difference-you-can-get-from-chang...
3433. 统计用户被提及情况[https://leetcode.cn/problems/count-mentions-per-user/]今天试了下deepseek,我把题...
1513. 仅含 1 的子串数[https://leetcode.cn/problems/number-of-substrings-with-only-1s/]
1685. 有序数组中差绝对值之和[https://leetcode.cn/problems/sum-of-absolute-differences-in-a-sorted-...
2521. 数组乘积中的不同质因数数目[https://leetcode.cn/problems/distinct-prime-factors-of-product-of-a...
2761. 和等于目标值的质数对[https://leetcode.cn/problems/prime-pairs-with-target-sum/]
昨天班组聚餐,喝完酒,胃里那是翻江倒海,然后睡了一觉。详见Leetcode 1577 (羡慕Python模拟都可以过)[https://www.jianshu.com/p/8...
今晚班组聚餐,喝了半斤白酒后,我居然靠模拟做出一道Leetcode中等题,纪念一下1577. 数的平方等于两数乘积的方法数[https://leetcode.cn/probl...