随笔分类 -  LeetCode(Java)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要:LeetCode 1011. Capacity To Ship Packages Within D Days (在 D 天内送达包裹的能力) 题目 链接 https://leetcode-cn.com/problems/capacity-to-ship-packages-within-d-days/ 阅读全文
posted @ 2022-03-10 16:41 cheng102e 阅读(68) 评论(0) 推荐(0)
摘要:LeetCode 875. Koko Eating Bananas (爱吃香蕉的珂珂) 题目 链接 https://leetcode-cn.com/problems/koko-eating-bananas/ 问题描述 珂珂喜欢吃香蕉。这里有 N 堆香蕉,第 i 堆中有 piles[i] 根香蕉。警卫 阅读全文
posted @ 2022-03-10 16:26 cheng102e 阅读(53) 评论(0) 推荐(0)
摘要:LeetCode 34. Find First and Last Position of Element in Sorted Array () 题目 链接 https://leetcode-cn.com/problems/find-first-and-last-position-of-element 阅读全文
posted @ 2022-03-10 14:29 cheng102e 阅读(36) 评论(0) 推荐(0)
摘要:LeetCode 567. Permutation in String (字符串的排列) 题目 链接 https://leetcode-cn.com/problems/permutation-in-string/ 问题描述 给你两个字符串 s1 和 s2 ,写一个函数来判断 s2 是否包含 s1 的 阅读全文
posted @ 2022-03-07 23:51 cheng102e 阅读(49) 评论(0) 推荐(0)
摘要:LeetCode 438. Find All Anagrams in a String (找到字符串中所有字母异位词) 题目 链接 https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/ 问题描述 给定两个字符串 s 和 p,找 阅读全文
posted @ 2022-03-07 23:47 cheng102e 阅读(59) 评论(0) 推荐(0)
摘要:LeetCode 76. Minimum Window Substring (最小覆盖子串) 题目 链接 https://leetcode-cn.com/problems/minimum-window-substring/ 问题描述 给你一个字符串 s 、一个字符串 t 。返回 s 中涵盖 t 所有 阅读全文
posted @ 2022-03-07 23:43 cheng102e 阅读(51) 评论(0) 推荐(0)
摘要:LeetCode 1109. Corporate Flight Bookings (航班预订统计) 题目 链接 https://leetcode-cn.com/problems/corporate-flight-bookings/submissions/ 问题描述 这里有 n 个航班,它们分别从 1 阅读全文
posted @ 2022-03-06 16:55 cheng102e 阅读(47) 评论(0) 推荐(0)
摘要:LeetCode 1094. Car Pooling (拼车) 题目 链接 https://leetcode-cn.com/problems/car-pooling/ 问题描述 假设你是一位顺风车司机,车上最初有 capacity 个空座位可以用来载客。由于道路的限制,车 只能 向一个方向行驶(也就 阅读全文
posted @ 2022-03-06 16:42 cheng102e 阅读(78) 评论(0) 推荐(0)
摘要:LeetCode 560. Subarray Sum Equals K (和为 K 的子数组) 题目 链接 https://leetcode-cn.com/problems/subarray-sum-equals-k/ 问题描述 给你一个整数数组 nums 和一个整数 k ,请你统计并返回该数组中和 阅读全文
posted @ 2022-03-05 15:09 cheng102e 阅读(53) 评论(0) 推荐(0)
摘要:LeetCode 304.Range Sum Query 2D - Immutable (二维区域和检索 - 数组不可变) 题目 链接 https://leetcode-cn.com/problems/range-sum-query-2d-immutable/ 问题描述 给定一个二维矩阵 matri 阅读全文
posted @ 2022-03-05 08:57 cheng102e 阅读(46) 评论(0) 推荐(0)
摘要:LeetCode 553. Optimal Division (最优除法) 题目 链接 https://leetcode-cn.com/problems/optimal-division/ 问题描述 给定一组正整数,相邻的整数之间将会进行浮点除法操作。例如, [2,3,4] → 2 / 3 / 4 阅读全文
posted @ 2022-03-02 14:20 cheng102e 阅读(54) 评论(0) 推荐(0)
摘要:LeetCode 540. Single Element in a Sorted Array (有序数组中的单一元素) 题目 链接 https://leetcode-cn.com/problems/single-element-in-a-sorted-array/ 问题描述 给你一个仅由整数组成的有 阅读全文
posted @ 2022-03-02 10:44 cheng102e 阅读(72) 评论(0) 推荐(0)
摘要:LeetCode 717. 1-bit and 2-bit Characters (1 比特与 2 比特字符) 题目 链接 https://leetcode-cn.com/problems/1-bit-and-2-bit-characters/ 问题描述 有两种特殊字符: 第一种字符可以用一比特 0 阅读全文
posted @ 2022-02-26 22:16 cheng102e 阅读(44) 评论(0) 推荐(0)
摘要:LeetCode 1447. Simplified Fractions (最简分数) 题目 链接 https://leetcode-cn.com/problems/simplified-fractions/ 问题描述 给你一个整数 n ,请你返回所有 0 到 1 之间(不包括 0 和 1)满足分母小 阅读全文
posted @ 2022-02-26 22:07 cheng102e 阅读(55) 评论(0) 推荐(0)
摘要:LeetCode 537. Complex Number Multiplication (复数乘法) 题目 链接 https://leetcode-cn.com/problems/complex-number-multiplication/ 问题描述 复数 可以用字符串表示,遵循 "实部+虚部i" 阅读全文
posted @ 2022-02-26 20:42 cheng102e 阅读(54) 评论(0) 推荐(0)
摘要:LeetCode 2016. Maximum Difference Between Increasing Elements (增量元素之间的最大差值) 题目 链接 https://leetcode-cn.com/problems/maximum-difference-between-increasi 阅读全文
posted @ 2022-02-26 15:59 cheng102e 阅读(42) 评论(0) 推荐(0)
摘要:LeetCode 1791. Find Center of Star Graph (找出星型图的中心节点) 题目 链接 https://leetcode-cn.com/problems/find-center-of-star-graph/ 问题描述 有一个无向的 星型 图,由 n 个编号从 1 到 阅读全文
posted @ 2022-02-19 23:55 cheng102e 阅读(115) 评论(0) 推荐(0)
摘要:LeetCode 1748. Sum of Unique Elements (唯一元素的和) 题目 链接 https://leetcode-cn.com/problems/sum-of-unique-elements/ 问题描述 给你一个整数数组 nums 。数组中唯一元素是那些只出现 恰好一次 的 阅读全文
posted @ 2022-02-19 23:43 cheng102e 阅读(69) 评论(0) 推荐(0)
摘要:LeetCode 1984. Minimum Difference Between Highest and Lowest of K Scores (学生分数的最小差值) 题目 链接 https://leetcode-cn.com/problems/minimum-difference-between 阅读全文
posted @ 2022-02-14 23:56 cheng102e 阅读(64) 评论(0) 推荐(0)
摘要:LeetCode 1725. Number Of Rectangles That Can Form The Largest Square (可以形成最大正方形的矩形数目) 题目 链接 https://leetcode-cn.com/problems/number-of-rectangles-that 阅读全文
posted @ 2022-02-14 20:31 cheng102e 阅读(57) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页