摘要:
此博客连接:https://www.cnblogs.com/ping2yingshi/p/14054440.html 存在重复元素2 题目链接:https://leetcode-cn.com/problems/contains-duplicate-ii/submissions/ 题目 给定一个整数数 阅读全文
posted @ 2020-11-28 22:01
萍2樱释
阅读(120)
评论(0)
推荐(0)
摘要:
此博客链接: 翻转对 题目链接:https://leetcode-cn.com/problems/reverse-pairs/ 给定一个数组 nums ,如果 i < j 且 nums[i] > 2*nums[j] 我们就将 (i, j) 称作一个重要翻转对。 你需要返回给定数组中的重要翻转对的数量 阅读全文
posted @ 2020-11-28 10:21
萍2樱释
阅读(105)
评论(0)
推荐(0)
摘要:
此博客链接:https://www.cnblogs.com/ping2yingshi/p/14051225.html 分糖果 题目链接:https://leetcode-cn.com/problems/distribute-candies/ 给定一个偶数长度的数组,其中不同的数字代表着不同种类的糖果 阅读全文
posted @ 2020-11-28 01:08
萍2樱释
阅读(152)
评论(0)
推荐(0)

浙公网安备 33010602011771号