摘要:
此博客链接:https://www.cnblogs.com/ping2yingshi/p/14054909.html 单词规律 题目链接:https://leetcode-cn.com/problems/word-pattern/ 题目 给定一种规律 pattern 和一个字符串 str ,判断 s 阅读全文
摘要:
此博客连接:https://www.cnblogs.com/ping2yingshi/p/14054440.html 存在重复元素2 题目链接:https://leetcode-cn.com/problems/contains-duplicate-ii/submissions/ 题目 给定一个整数数 阅读全文
摘要:
此博客链接: 翻转对 题目链接:https://leetcode-cn.com/problems/reverse-pairs/ 给定一个数组 nums ,如果 i < j 且 nums[i] > 2*nums[j] 我们就将 (i, j) 称作一个重要翻转对。 你需要返回给定数组中的重要翻转对的数量 阅读全文
摘要:
此博客链接:https://www.cnblogs.com/ping2yingshi/p/14051225.html 分糖果 题目链接:https://leetcode-cn.com/problems/distribute-candies/ 给定一个偶数长度的数组,其中不同的数字代表着不同种类的糖果 阅读全文