上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页
摘要: LeetCode 1370. Increasing Decreasing String上升下降字符串【Easy】【Python】【排序】 Problem "LeetCode" Given a string . You should re order the string using the foll 阅读全文
posted @ 2020-03-08 13:37 Wonz 阅读(231) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题59 II. 队列的最大值【Medium】【Python】【队列】 问题 "力扣" 请定义一个队列并实现函数 得到队列里的最大值,要求函数 、`push_back pop_front` 的 均摊 时间复杂度都是O(1)。 若队列为空, 和 需要返回 1 示例 1: 示例 2: 阅读全文
posted @ 2020-03-08 13:09 Wonz 阅读(353) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0039. Combination Sum组合总和【Medium】【Python】【回溯】 Problem "LeetCode" Given a set of candidate numbers ( ) (without duplicates) and a target numbe 阅读全文
posted @ 2020-03-07 13:30 Wonz 阅读(189) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题 57 Ⅱ. 和为s的连续正数序列【Easy】【Python】【滑窗】【数学】 问题 "力扣" 输入一个正整数 target ,输出所有和为 target 的连续正整数序列(至少含有两个数)。 序列内的数字由小到大排列,不同序列按照首个数字从小到大排列。 示例 1: 示例 2 阅读全文
posted @ 2020-03-06 14:59 Wonz 阅读(469) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0077. Combinations组合【Medium】【Python】【回溯】 Problem "LeetCode" Given two integers n and k , return all possible combinations of k numbers out of 阅读全文
posted @ 2020-03-05 22:14 Wonz 阅读(135) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0047. Permutations II全排列 II【Medium】【Python】【回溯】 Problem "LeetCode" Given a collection of numbers that might contain duplicates, return all po 阅读全文
posted @ 2020-03-05 21:13 Wonz 阅读(167) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1103. Distribute Candies to People分糖果 II【Easy】【Python】【暴力】 Problem "LeetCode" We distribute some number of , to a row of people in the follow 阅读全文
posted @ 2020-03-05 15:13 Wonz 阅读(203) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0046. Permutations全排列【Medium】【Python】【回溯】【DFS】 Problem "LeetCode" Given a collection of distinct integers, return all possible permutations. 阅读全文
posted @ 2020-03-04 23:10 Wonz 阅读(221) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0079. Word Search单词搜索【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2D board and a word, find if the word exists in the grid. The word can 阅读全文
posted @ 2020-03-04 21:52 Wonz 阅读(152) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0017. Letter Combinations of a Phone Number电话号码的字母组合【Medium】【Python】【回溯】【DFS】【暴力】 Problem "LeetCode" Given a string containing digits from in 阅读全文
posted @ 2020-03-04 21:13 Wonz 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页