跟 3250. Find the Count of Monotonic Pairs I 一模一样,只不过 nums[i] 的上限从 50 增加到 1000。
https://leetcode.cn/problems/find-the-count-of-monotonic-pairs-ii/
直接用上次的代码似乎问题不大。
跟 3250. Find the Count of Monotonic Pairs I 一模一样,只不过 nums[i] 的上限从 50 增加到 1000。
https://leetcode.cn/problems/find-the-count-of-monotonic-pairs-ii/
直接用上次的代码似乎问题不大。