题目描述:
LeetCode 1014. Capacity To Ship Packages Within D Days
A conveyor belt has packages that must be shipped from one port to another within D
days.
The i
-th package on the conveyor belt has a weight of weights ...
最后更新于 .
LeetCode 1014. Capacity To Ship Packages Within D Days
A conveyor belt has packages that must be shipped from one port to another within D
days.
The i
-th package on the conveyor belt has a weight of weights ...
最后更新于 .
LeetCode 1015. Numbers With Repeated Digits
Given a positive integer N
, return the number of positive integers less than or equal to N
that have at least 1 repeated digit.
Example 1:
Input: 20 Output: 1 Explanation: The only ...
最后更新于 .
LeetCode 950. Reveal Cards In Increasing Order
In a deck of cards, every card has a unique integer. You can order the deck in any order you want.
Initially, all the cards start face down (unrevealed) in one deck ...
最后更新于 .
LeetCode 952. Largest Component Size by Common Factor
Given a non-empty array of unique positive integers A
, consider the following graph:
A.length
nodes, labelled A[0]
to A[A.length - 1];
A ...
最后更新于 .
最大值(整数数组):
Arrays.stream(A).max().getAsInt()
int[] A = {6,7,8,2,1,3,4,5};
int maxVal = Arrays.stream(A).max().getAsInt();
最小值(整数数组):
Arrays.stream(A).min().getAsInt()
int[] A = {6,7,8,2,1,3,4 ...