lao1 me
AI服务器日常推广公告
搜索
菜单
主题回帖收藏
  • Neo-linuxdo
    比快更快,社区官方 iOS App 更新至 1.0.2热
    这里面的功能有我反馈的,好耶,祝福社区越来越好
    Neo-linuxdo5天前AI18Millet12
    AI
  • 魔法师
    Leetcode每日一题 —— 3727. 最大交替平方和
    魔法师2026-10-13AI70wFF
    AI
  • SomeBottle
    Leetcode每日一题 —— 1401. 圆和矩形是否有重叠
    刚开始用的两个矩形判断 结果就是有一个样例过不去, 还是看了题解``` class Solution: def checkOverlap(self, radius: int, xCenter: int, yCenter: int, x1: int, y1: int, x2: int, y2: int) -> bool: def f(i, j, k): if i <= k <= j: return
    SomeBottle2026-09-19AI4编程牛马波比
    AI
  • 魔法师
    Leetcode每日一题 —— 1520. 最多的不重叠子字符串
    看见hard就不想做,无法战胜. 13. 罗马数字转整数 - 力扣(LeetCode)``` f = { 'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000, } class Solution: def romanToInt(self, s: str) -> int: ans = 0 for x, y in pairwis
    魔法师2026-09-18AI3CPython
    AI
  • 魔法师
    Leetcode每日一题 —— 836. 矩形重叠
    魔法师2026-09-14AI7Qiansui
    AI
  • 魔法师
    Leetcode每日一题 —— 3414. 不重叠区间的最大得分
    无法战胜佬友 切换至新手频道
    魔法师2026-09-13AI1CPython
    AI
  • 魔法师
    Leetcode每日一题 —— 3483. 不同三位偶数的数目
    魔法师2026-09-11AI7o8080x
    AI
  • 魔法师
    Leetcode每日一题 —— 3871. 统计范围内的逗号 II
    魔法师2026-09-09AI6欧拉线
    AI
  • 魔法师
    Leetcode每日一题 —— 3903. 最小稳定下标 I
    我突然发现我这个如果做明天的题会WA掉,判断最大值有一个地方会存在漏洞, 就是我是先比较再维护,这样的话是有问题的,不过样例集中缺少这个样例,比如``` nums = [6,3,2,0,4,10,5], k = 1 ```这个时候是有问题的, 更新代码:``` class Solution: def firstStableIndex(self, nums: list[int], k: int) -
    魔法师2026-09-04AI8CPython
    AI
  • 魔法师
    Leetcode每日一题 —— 3903. 最小稳定下标 I
    被样例误导,看错了,一开始看成i-1了,导致疯狂的wa,``` class Solution: def firstStableIndex(self, nums: list[int], k: int) -> int: mx = nums[0] n = len(nums) mi = [nums[-1]] * (n+1) for i in range(n-1, -1, -1): mi[i] = min(
    魔法师2026-09-04AI8CPython
    AI
  • 魔法师
    Leetcode每日一题 —— 3718. 缺失的最小倍数
    早上好佬友,今天来早了``` class Solution: def missingMultiple(self, nums: List[int], k: int) -> int: nums = set(nums) x = k while k in nums: k += x return k
    魔法师2026-08-25AI4vector2
    AI
  • SomeBottle
    Leetcode每日一题 —— 3702. 按位异或非零的最长子序列
    开始滑动窗口失败,又想成了前后缀分解,还是不行,结果无力战胜``` class Solution: def longestSubsequence(self, nums: List[int]) -> int: cur = 0 n = len(nums) ok = False for x in nums: if x: ok = True cur ^= x if not ok: return 0 if
    SomeBottle2026-08-15AI2CPython
    AI
CPython
CPython
Lv1 · lao1 0
TA的主题TA的回帖我的称号TA的收藏
提示