首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏全栈程序员必看

    leetcode 颜色分类_LEETCODE

    给定一个包含红色、白色和蓝色,一共 n 个元素的数组,原地对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。

    44820编辑于 2022-09-22
  • 来自专栏全栈程序员必看

    leetcode546_leetcode 5

    Given a collection of distinct integers, return all possible permutations.

    26020编辑于 2022-11-05
  • 来自专栏全栈程序员必看

    leetcode 颜色分类_leetcode难度

    给定一个包含红色、白色和蓝色,一共 n 个元素的数组,原地对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。

    36630编辑于 2022-09-22
  • 来自专栏全栈程序员必看

    leetcode76_leetcode72

    Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

    26730编辑于 2022-11-05
  • 来自专栏全栈程序员必看

    leetcode516_leetcode46

    Given a collection of numbers, return all possible permutations.

    27030编辑于 2022-11-08
  • 来自专栏Leetcode算法

    LeetCode

    //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //TODO //T

    38740发布于 2019-01-22
  • 来自专栏云原生民工

    Leetcode

    23220编辑于 2023-11-21
  • 来自专栏python3

    leetCode

    Given an array of integers, return indices of the two numbers such that they add up to a specific target.

    31730发布于 2020-01-02
  • 来自专栏全栈程序员必看

    leetcode 三数之和_leetcode数组

    给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有和为 0 且不重复的三元组。

    26930编辑于 2022-09-22
  • 来自专栏达达前端

    力扣 (LeetCode) LeetCode HOT 100

    LeetCode-HOT-100 力扣 (LeetCode) LeetCode 热题 HOT 100  ⚡ 如果你有问题 https://webvueblog.github.io/LeetCode-HOT

    1.4K40编辑于 2022-09-28
  • 来自专栏全栈程序员必看

    leetcode 792_leetcode5421编码

    给定一个 m x n 二维字符网格 board 和一个字符串单词 word 。如果 word 存在于网格中,返回 true ;否则,返回 false 。

    24630编辑于 2022-09-22
  • 来自专栏全栈程序员必看

    leetcode官网_leetcode有多少题

    在一个从左到右,从上到下均有序的二维数组中,找到从小到第k个数字,这里需要注意,不要求一定要是唯一的值,即假设存在这样一个序列1,2,2,3,则第三个数字是2而不是3。

    42210编辑于 2022-08-04
  • 来自专栏SnailTyan

    Leetcode 1716. Calculate Money in Leetcode Bank

    others = current total += current return total Reference https://leetcode.com /problems/calculate-money-in-leetcode-bank/

    47120发布于 2021-08-13
  • 来自专栏flytam之深入前端技术栈

    leetcode 11

    maxarea = Math.max(leftarea,rightarea,maxarea) } return maxarea }; 这样的效率虽然比暴力好一点能够通工leetcode

    40110发布于 2020-01-14
  • 来自专栏小石头

    leetcode 记录

    请你实现三个 API append,addAll 和 multAll 来实现奇妙序列。

    23110编辑于 2022-11-10
  • 来自专栏CSDN旧文

    leetcode 4

    题目描述 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume nums1 and nums2 cannot be both empty. Example 1: nums1 = [1,

    37420发布于 2020-10-28
  • 来自专栏fangyangcoder

    leetcode(三)

    参考 1.https://leetcode.com/contest/weekly-contest-91/problems/score-after-flipping-matrix/

    59230发布于 2018-09-11
  • 来自专栏fangyangcoder

    leetcode(二)

    leetcode_problem863 rank: medium 1.问题 给定一个二叉数(root),二叉树中一个node(target)以及整数K,求二叉树中所有与target距离K的节点值。 参考 1. https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/solution/ 2. https://leetcode.com

    73620发布于 2018-09-11
  • 来自专栏ACM算法日常

    leetcode 1029

    公司计划面试 2N 人。第 i 人飞往 A 市的费用为 costs[i][0],飞往 B 市的费用为 costs[i][1]。

    48830发布于 2019-05-14
  • 来自专栏后端技术

    leetcode】链表

    遇到的输入链表如果没有空表头,一般给它加个空表头,便于设计算法,不用区分很多特殊情况。 如果算法可能设计前驱指针pre,则务必要加上空表头,因为当需要找到链表第一个节点的前驱指针时,没空表头会很难办。有空表头的话,第一个节点的前驱节点就是空表头。

    43650发布于 2019-05-25
领券