• 辞砚の乐土
    搜索
    随机换张背景
    登录
    登录
    avatar

    给时光以生命,而不是给生命以时光。

    leetcode算法题

    post_img
    发布于 21 天前
    56 热度 无~ leetcode算法题

    209.长度最小的子数组

    摘要

    题目描述 给定一个含有 n 个正整数的数组和一个正整数 target 。找出该数组中满足其 …

    post_img
    发布于 2025-03-22
    251 热度 无~ leetcode算法题

    LeetCode 第2685题 统计完全连通分量的数量

    摘要

    问题描述 给你一个整数 n 。现有一个包含 n 个顶点的 无向 图,顶 …

    post_img
    发布于 2025-03-18
    219 热度 无~ leetcode算法题

    LeetCode 第2401题 Longest Nice Subarray

    摘要

    问题描述 给你一个由 正 整数组成的数组 nums 。 如果 nums&nbsp …

    post_img
    发布于 2025-03-16
    249 热度 无~ leetcode算法题

    LeetCode 第2594题 Minimum Time to Repair Cars

    摘要

    问题描述 给你一个整数数组 ranks ,表示一些机械工的 能力值 。ranksi&nbs …

    post_img
    发布于 2025-03-14
    229 热度 无~ leetcode算法题

    LeetCode 第2226题 Maximum Candies Allocated to K Children

    摘要

    问题描述 给你一个 下标从 0 开始 的整数数组 candies 。数组中的每个元素表示大 …

    post_img
    发布于 2025-03-11
    216 热度 无~ leetcode算法题

    LeetCode 第1358题 Number of Substrings Containing All Three Characters

    摘要

    问题描述 给你一个字符串 s ,它只包含三种字符 a, b 和 c 。 请你返回 a,b 和 c 都至少出现过一次的子字符串数目。 …

    post_img
    发布于 2025-03-07
    248 热度 无~ leetcode算法题

    LeetCode 第2523题 Closest Prime Numbers in Range

    摘要

    问题描述: 给定两个正整数 left 和 right,找到两个整数 num1 和 …

    post_img
    发布于 2025-03-04
    1129 热度 无~ leetcode算法题

    LeetCode 第1780题 Check If Number is a Sum of Powers of Three

    摘要

    方法思路 题目要求判断一个整数 n 是否可以表示为不同的 3 的幂次之和。通过分析,我们可以将问题转化为检查& …

    post_img
    发布于 2025-03-03
    622 热度 无~ leetcode算法题

    LeetCode 第2161题 Partition Array According to Given Pivot

    摘要

    方法思路 题目要求将数组根据给定的pivot值重新排列,使得所有小于pivot的元素位于左边,等于的位于中间,大于的位于右边,并保 …

    post_img
    发布于 2025-03-02
    180 热度 无~ leetcode算法题

    LeetCode 第334题 Increasing Triplet Subsequence

    摘要

    递增的三元子序列

    更早的文章
    loading_svg

    Copyright © by CiYan.

    Theme Sakurairo by Fuukei

    想要找点什么呢?