10 2021 档案

摘要:[LeetCode] 73. Set Matrix Zeroes 题目 Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's, and return the mat 阅读全文
posted @ 2021-10-21 21:18 沐灵_hh 阅读(22) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 42. Trapping Rain Water 题目 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much w 阅读全文
posted @ 2021-10-21 21:08 沐灵_hh 阅读(24) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 41. First Missing Positive 题目 Given an unsorted integer array nums, return the smallest missing positive integer. You must implement an alg 阅读全文
posted @ 2021-10-21 20:54 沐灵_hh 阅读(23) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 71. Simplify Path 题目 Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file 阅读全文
posted @ 2021-10-21 20:39 沐灵_hh 阅读(26) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 148. Sort List 题目 Given the head of a linked list, return the list after sorting it in ascending order. Example 1: Input: head = [4,2,1,3] 阅读全文
posted @ 2021-10-21 20:32 沐灵_hh 阅读(20) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 239. Sliding Window Maximum 题目 You are given an array of integers nums, there is a sliding window of size k which is moving from the very l 阅读全文
posted @ 2021-10-21 20:27 沐灵_hh 阅读(26) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 55. 跳跃游戏 题目 给定一个非负整数数组 nums ,你最初位于数组的 第一个下标 。 数组中的每个元素代表你在该位置可以跳跃的最大长度。 判断你是否能够到达最后一个下标。 示例 1: 输入:nums = [2,3,1,1,4] 输出:true 解释:可以先跳 1 步,从下 阅读全文
posted @ 2021-10-19 16:59 沐灵_hh 阅读(19) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 395. 至少有 K 个重复字符的最长子串 题目 给你一个字符串 s 和一个整数 k ,请你找出 s 中的最长子串, 要求该子串中的每一字符出现次数都不少于 k 。返回这一子串的长度。 示例 1: 输入:s = "aaabb", k = 3 输出:3 解释:最长子串为 "aaa 阅读全文
posted @ 2021-10-19 16:40 沐灵_hh 阅读(56) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 61. 旋转链表 题目 Given the head of a linked list, rotate the list to the right by k places. Example 1: Input: head = [1,2,3,4,5], k = 2 Output: 阅读全文
posted @ 2021-10-19 16:32 沐灵_hh 阅读(25) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 60. 排列序列 题目 The set [1, 2, 3, ..., n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, 阅读全文
posted @ 2021-10-19 16:24 沐灵_hh 阅读(33) 评论(0) 推荐(0) 编辑
摘要:[LeetCode] 59. 螺旋矩阵 II 题目 Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n 阅读全文
posted @ 2021-10-19 16:11 沐灵_hh 阅读(22) 评论(0) 推荐(0) 编辑
摘要:LeetCode 刷题 2021/10/15 48. 旋转图像 题目 给定一个 n × n 的二维矩阵 matrix 表示一个图像。请你将图像顺时针旋转 90 度。 你必须在 原地 旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要 使用另一个矩阵来旋转图像。 思路 题目要求不能用辅助数组。 易 阅读全文
posted @ 2021-10-16 23:12 沐灵_hh 阅读(31) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示