摘要:
Valid Mountain Array Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that arr is a mountain array if a 阅读全文
posted @ 2023-01-13 21:50
iyiluo
阅读(11)
评论(0)
推荐(0)
摘要:
Degree of an Array Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of i 阅读全文
posted @ 2023-01-13 21:50
iyiluo
阅读(17)
评论(0)
推荐(0)
摘要:
Distribute Candies Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited a d 阅读全文
posted @ 2023-01-13 21:50
iyiluo
阅读(15)
评论(0)
推荐(0)
摘要:
Longest Harmonious Subsequence We define a harmonious array as an array where the difference between its maximum value and its minimum value is exactl 阅读全文
posted @ 2023-01-13 21:49
iyiluo
阅读(14)
评论(0)
推荐(0)
摘要:
Range Addition II You are given an m x n matrix M initialized with all 0's and an array of operations ops, where ops[i] = [ai, bi] means M[x][y] shoul 阅读全文
posted @ 2023-01-13 21:49
iyiluo
阅读(15)
评论(0)
推荐(0)
摘要:
Can Place Flowers You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent p 阅读全文
posted @ 2023-01-13 21:49
iyiluo
阅读(16)
评论(0)
推荐(0)
摘要:
LongestContinuous Increasing Subsequence Given an unsorted array of integers nums, return the length of the longest continuous increasing subsequence 阅读全文
posted @ 2023-01-13 21:49
iyiluo
阅读(12)
评论(0)
推荐(0)
摘要:
Baseball Game You are keeping the scores for a baseball game with strange rules. At the beginning of the game, you start with an empty record. You are 阅读全文
posted @ 2023-01-13 21:48
iyiluo
阅读(20)
评论(0)
推荐(0)