05 2024 档案
摘要:原题链接在这里:https://leetcode.com/problems/sort-the-matrix-diagonally/description/ 题目: A matrix diagonal is a diagonal line of cells starting from some cel
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/description/ 题目: You are given an array of events where events[i]
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-sum-circular-subarray/description/ 题目: Given a circular integer array nums of length n, return the maxim
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/merge-in-between-linked-lists/description/ 题目: You are given two linked lists: list1 and list2 of sizes n and m
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-even-and-odd-bits/description/ 题目: You are given a positive integer n. Let even denote the number of e
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-all-groups-of-farmland/description/ 题目: You are given a 0-indexed m x n binary matrix land where a 0 repres
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-common-elements-between-two-arrays/description/ 题目: You are given two 0-indexed integer arrays nums1 and nu
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-wonderful-substrings/description/ 题目: A wonderful string is a string where at most one letter appears
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/element-appearing-more-than-25-in-sorted-array/description/ 题目: Given an integer array sorted in non-decreasing
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-number-of-intersections-on-the-chart/description/ 题目: There is a line chart consisting of n points conne
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/mice-and-cheese/description/ 题目: There are two mice and n different types of cheese, each type of cheese should
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/description/ 题目: Given an array of integers, return the maximum sum for a
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/count-hills-and-valleys-in-an-array/description/ 题目: You are given a 0-indexed integer array nums. An index i is
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/check-if-an-original-string-exists-given-two-encoded-strings/description/ 题目: An original string, consisting of
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/the-number-of-beautiful-subsets/description/ 题目: You are given an array nums of positive integers and a positive
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-sum-bst-in-binary-tree/description/ 题目: Given a binary tree root, return the maximum sum of all keys of
阅读全文