上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 108 下一页

2020年12月4日

摘要: 地址 https://leetcode-cn.com/problems/split-array-into-consecutive-subsequences/ 给你一个按升序排序的整数数组 num(可能包含重复数字),请你将它们分割成一个或多个子序列,其中每个子序列都由连续整数组成且长度至少为 3 。 阅读全文
posted @ 2020-12-04 21:41 itdef 阅读(117) 评论(0) 推荐(0) 编辑

2020年12月3日

摘要: 地址 https://leetcode-cn.com/problems/permutations-ii/ 给定一个可包含重复数字的序列 nums ,按任意顺序 返回所有不重复的全排列。 示例 1: 输入:nums = [1,1,2] 输出: [[1,1,2], [1,2,1], [2,1,1]] 示 阅读全文
posted @ 2020-12-03 16:57 itdef 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/permutations/submissions/ 给定一个 没有重复 数字的序列,返回其所有可能的全排列。 示例: 输入: [1,2,3] 输出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [ 阅读全文
posted @ 2020-12-03 15:52 itdef 阅读(241) 评论(0) 推荐(0) 编辑

2020年12月2日

摘要: 地址 https://leetcode-cn.com/problems/rotate-image/submissions/ 给定一个 n × n 的二维矩阵表示一个图像。 将图像顺时针旋转 90 度。 说明: 你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像 阅读全文
posted @ 2020-12-02 14:01 itdef 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/combination-sum-ii/ 给定一个数组 candidates 和一个目标数 target , 找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的每个数字在每个组合中 阅读全文
posted @ 2020-12-02 10:38 itdef 阅读(163) 评论(0) 推荐(0) 编辑

2020年12月1日

摘要: 地址 https://leetcode-cn.com/problems/group-anagrams/ 给定一个字符串数组,将字母异位词组合在一起。 字母异位词指字母相同,但排列不同的字符串。 示例: 输入: ["eat", "tea", "tan", "ate", "nat", "bat"] 输出 阅读全文
posted @ 2020-12-01 15:16 itdef 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 地址 https://leetcode-cn.com/problems/add-strings/ 给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。 提示: num1 和num2 的长度都小于 5100 num1 和num2 都只包含数字 0-9 num1 和num2 都不包含任何 阅读全文
posted @ 2020-12-01 14:57 itdef 阅读(135) 评论(0) 推荐(0) 编辑

2020年11月17日

摘要: 安利一本书籍 用poj题目进行图论的讲解 《图论算法理论、实现及应用》 阅读全文
posted @ 2020-11-17 09:05 itdef 阅读(137) 评论(0) 推荐(0) 编辑

2020年11月7日

摘要: 地址 https://leetcode-cn.com/problems/count-of-range-sum/ 给定一个整数数组 nums,返回区间和在 [lower, upper] 之间的个数, 包含 lower 和 upper。 区间和 S(i, j) 表示在 nums 中, 位置从 i 到 j 阅读全文
posted @ 2020-11-07 15:19 itdef 阅读(144) 评论(0) 推荐(0) 编辑

2020年10月17日

摘要: 地址 https://leetcode-cn.com/problems/squares-of-a-sorted-array/ 给定一个按非递减顺序排序的整数数组 A,返回每个数字的平方组成的新数组,要求也按非递减顺序排序。 示例 1: 输入:[-4,-1,0,3,10] 输出:[0,1,9,16,1 阅读全文
posted @ 2020-10-17 13:39 itdef 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 108 下一页

导航