04 2024 档案
摘要:原题链接在这里:https://leetcode.com/problems/jump-game-v/description/ 题目: Given an array of integers arr and an integer d. In one step you can jump from inde
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/rank-transform-of-an-array/description/ 题目: Given an array of integers arr, replace each element with its rank.
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/spiral-matrix-iv/description/ 题目: You are given two integers m and n, which represent the dimensions of a matrix
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/diagonal-traverse-ii/description/ 题目: Given a 2D integer array nums, return all elements of nums in diagonal ord
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/description/ 题目: Given the root of a binary tree, return the sum of va
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-time-to-collect-all-apples-in-a-tree/description/ 题目: Given an undirected tree consisting of n vertices
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-visible-people-in-a-queue/description/ 题目: There are n people standing in a queue, and they numbered f
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/split-message-based-on-limit/description/ 题目: You are given a string, message, and a positive integer, limit. Yo
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows/description/ 题目: You are given an m x n matrix mat that h
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-number-of-days-to-make-m-bouquets/description/ 题目: You are given an integer array bloomDay, an integer m
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/cutting-ribbons/description/ 题目: You are given an integer array ribbons, where ribbons[i] represents the length
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/kth-missing-positive-number/description/ 题目: Given an array arr of positive integers sorted in a strictly increa
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k/description/ 题目: You are given an integer array nums and an inte
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/description/ 题目: Given a string s consisting only of charac
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/sort-array-by-parity/description/ 题目: Given an integer array nums, move all the even integers at the beginning o
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/adding-spaces-to-a-string/description/ 题目: You are given a 0-indexed string s and a 0-indexed integer array spac
阅读全文