
力扣
文章平均质量分 51
代维7
这个作者很懒,什么都没留下…
展开
-
274. H-Index
【代码】274. H-Index。原创 2024-08-19 23:47:39 · 335 阅读 · 0 评论 -
3132. Find the Integer Added to Array II
【代码】3132. Find the Integer Added to Array II。原创 2024-08-09 22:31:44 · 361 阅读 · 0 评论 -
88. Merge Sorted Array
【代码】88. Merge Sorted Array。原创 2024-08-08 22:57:04 · 398 阅读 · 0 评论 -
3131. Find the Integer Added to Array I
【代码】3131. Find the Integer Added to Array I。原创 2024-08-08 22:52:49 · 485 阅读 · 0 评论 -
80. Remove Duplicates from Sorted Array II
【代码】80. Remove Duplicates from Sorted Array II。原创 2024-08-07 22:30:30 · 359 阅读 · 0 评论 -
3143. Maximum Points Inside the Square
【代码】3143. Maximum Points Inside the Square。原创 2024-08-03 08:34:01 · 290 阅读 · 0 评论 -
LCP40.心跳挑战
请帮参赛选手计算最大的有效得分。若不存在获取有效得分的卡牌方案,则返回 0。解释:选择数字为 1、8、9 的这三张卡牌,此时可获得最大的有效得分 1+8+9=18。张卡牌数字总和为偶数,则选手成绩「有效」且得分为。力扣挑战赛」心算项目的挑战比赛中,要求选手从。解释:不存在获取有效得分的卡牌方案。原创 2024-08-01 09:51:10 · 396 阅读 · 0 评论 -
349. Intersection of Two Arrays
【代码】349. Intersection of Two Arrays。原创 2024-03-07 22:25:42 · 198 阅读 · 0 评论 -
242. Valid Anagram
【代码】242. Valid Anagram。原创 2024-03-07 22:10:31 · 246 阅读 · 0 评论 -
209. Minimum Size Subarray Sum
【代码】209. Minimum Size Subarray Sum。原创 2024-03-07 21:51:34 · 314 阅读 · 0 评论 -
100. Same Tree
【代码】100. Same Tree。原创 2024-02-29 15:54:13 · 457 阅读 · 0 评论 -
104. Maximum Depth of Binary Tree
【代码】104. Maximum Depth of Binary Tree。原创 2024-02-29 10:37:00 · 452 阅读 · 0 评论 -
122. Best Time to Buy and Sell Stock II
【代码】122. Best Time to Buy and Sell Stock II。原创 2024-02-23 11:05:44 · 361 阅读 · 0 评论 -
121. Best Time to Buy and Sell Stock
【代码】121. Best Time to Buy and Sell Stock。原创 2024-02-20 23:19:14 · 198 阅读 · 0 评论 -
80. Remove Duplicates from Sorted Array II
【代码】80. Remove Duplicates from Sorted Array II。原创 2024-02-15 23:33:44 · 949 阅读 · 0 评论 -
LCR 119. 最长连续序列
找出数字连续的最长序列(不要求序列元素在原数组中连续)的长度。给定一个未排序的整数数组。原创 2024-02-01 10:34:07 · 254 阅读 · 0 评论 -
541. Reverse String II
【代码】541. Reverse String II。原创 2024-01-31 23:05:36 · 256 阅读 · 0 评论 -
2670. Find the Distinct Difference Array
【代码】2670. Find the Distinct Difference Array。原创 2024-01-31 21:56:31 · 990 阅读 · 0 评论 -
203. 移除链表元素
列表中的节点数目在范围 [0, 10。,请你删除链表中所有满足。给你一个链表的头节点。原创 2023-02-26 19:20:23 · 329 阅读 · 1 评论 -
力扣2. 两数相加
你可以假设除了数字 0 之外,这两个数都不会以 0 开头。的链表,表示两个非负的整数。它们每位数字都是按照。请你将两个数相加,并以相同形式返回一个表示和的链表。的方式存储的,并且每个节点只能存储。原创 2022-12-31 16:30:07 · 1155 阅读 · 0 评论 -
leetcode-15. 三数之和
不同的三元组是 [-1,0,1] 和 [-1,-1,2]。注意,输出的顺序和三元组的顺序并不重要。答案中不可以包含重复的三元组。唯一可能的三元组和不为 0。唯一可能的三元组和为 0。,判断是否存在三元组。原创 2022-10-05 18:20:01 · 150 阅读 · 0 评论 -
leetcode-11. 盛最多水的容器
图中垂直线代表输入数组 [1,8,6,2,5,4,8,3,7]。在此情况下,容器能够容纳水(表示为蓝色部分)的最大值为 49。轴共同构成的容器可以容纳最多的水。找出其中的两条线,使得它们与。返回容器可以储存的最大水量。原创 2022-10-05 12:38:18 · 162 阅读 · 0 评论 -
leetcode——4. 寻找两个正序数组的中位数
给定两个大小分别为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两个正序数组的 中位数。解释:合并数组 = [1,2,3,4] ,中位数 (2 + 3) / 2 = 2.5。输入:nums1 = [1,2], nums2 = [3,4]输入:nums1 = [1,3], nums2 = [2]解释:合并数组 = [1,2,3] ,中位数 2。输出:2.00000。输出:2.50000。原创 2022-09-25 15:20:32 · 264 阅读 · 0 评论