上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 97.排序数组 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/sort-an-array 题目描述 给定一个整数数组 nums,将该数组升序排列。 示例 1: 输入:[5,2,3,1]输出:[1,2,3,5]示例 2: 输入:[5,1 阅读全文
posted @ 2020-03-31 21:47 刘欣lx 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 96.圆圈中最后剩下的数字 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof 题目描述 0,1,,n-1这n个数字排成一个圆圈,从数字0开始 阅读全文
posted @ 2020-03-30 14:43 刘欣lx 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 95.地图分析 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/as-far-from-land-as-possible 题目描述 你现在手里有一份大小为 N x N 的『地图』(网格) grid,上面的每个『区域』(单元格)都用 0  阅读全文
posted @ 2020-03-29 22:03 刘欣lx 阅读(167) 评论(2) 推荐(0) 编辑
摘要: 94.单词的压缩编码 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/short-encoding-of-words 题目描述 给定一个单词列表,我们将这个列表编码成一个索引字符串 S 与一个索引列表 A。 例如,如果这个列表是 ["t 阅读全文
posted @ 2020-03-28 22:42 刘欣lx 阅读(237) 评论(1) 推荐(0) 编辑
摘要: 93.卡牌分组 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/x-of-a-kind-in-a-deck-of-cards 题目描述 给定一副牌,每张牌上都写着一个整数。 此时,你需要选定一个数字 X,使我们可以将整副牌按下述规则分成 阅读全文
posted @ 2020-03-27 14:55 刘欣lx 阅读(181) 评论(3) 推荐(0) 编辑
摘要: 92.车的可用捕获量 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/available-captures-for-rook 题目描述 在一个 8 x 8 的棋盘上,有一个白色车(rook)。也可能有空方块,白色的象(bishop)和黑 阅读全文
posted @ 2020-03-26 21:55 刘欣lx 阅读(106) 评论(2) 推荐(0) 编辑
摘要: 91.三维形体的表面积 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/surface-area-of-3d-shapes 题目描述 在 N * N 的网格上,我们放置一些 1 * 1 * 1 的立方体。 每个值 v = grid[i] 阅读全文
posted @ 2020-03-25 02:03 刘欣lx 阅读(223) 评论(2) 推荐(0) 编辑
摘要: 90.按摩师 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/the-masseuse-lcci 题目描述 一个有名的按摩师会收到源源不断的预约请求,每个预约都可以选择接或不接。在每次预约服务之间要有休息时间,因此她不能接受相邻的预约。 阅读全文
posted @ 2020-03-24 21:44 刘欣lx 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 89.链表的中间结点 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/middle-of-the-linked-list 题目描述 给定一个带有头结点 head 的非空单链表,返回链表的中间结点。 如果有两个中间结点,则返回第二个中间结 阅读全文
posted @ 2020-03-23 00:53 刘欣lx 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 88.使数组唯一的最小增量 题目链接 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/minimum-increment-to-make-array-unique 题目描述 给定整数数组 A,每次 move 操作将会选择任意 A[i],并将其递增 阅读全文
posted @ 2020-03-22 20:51 刘欣lx 阅读(151) 评论(2) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页