码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
[LeetCode in Python] 17 (M) letter combinations of a phone number 电话号码的字母组合
题目: https://leetcode cn.com/problems/letter combinations of a phone number/ 给定一个仅包含数字?2 9?的字符串,返回所有它能表示的字母组合。 给出数字到字母的映射如下(与电话按键相同)。 注意 1 不对应任何字母。 示例: ...
分类:编程语言   时间:2020-03-22 01:12:44    阅读次数:66
365. 水壶问题
https://leetcode cn.com/problems/water and jug problem/ BFS+hash 原贴讲解:https://leetcode cn.com/problems/water and jug problem/solution/tu jie bfs c jie ...
分类:其他好文   时间:2020-03-21 21:53:01    阅读次数:77
LeetCode 1042. Flower Planting With No Adjacent
原题链接在这里:https://leetcode.com/problems/flower-planting-with-no-adjacent/ 题目: You have N gardens, labelled 1 to N. In each garden, you want to plant one ...
分类:其他好文   时间:2020-03-21 14:40:05    阅读次数:51
LeetCode 796. Rotate String
原题链接在这里:https://leetcode.com/problems/rotate-string/ 题目: We are given two strings, A and B. A shift on A consists of taking string A and moving the le ...
分类:其他好文   时间:2020-03-21 14:31:02    阅读次数:42
PTA(Advanced Level)1059.Prime Factors
Given any positive integer N , you are supposed to find all of its prime factors, and write them in the format N = p 1 k 1× p 2 k 2×?× p m k m . Input ...
分类:其他好文   时间:2020-03-21 13:10:32    阅读次数:77
LeetCode 470. Implement Rand10() Using Rand7()
原题链接在这里:https://leetcode.com/problems/implement-rand10-using-rand7/ 题目: Given a function rand7 which generates a uniform random integer in the range 1 ...
分类:其他好文   时间:2020-03-21 09:59:59    阅读次数:57
leetcode 19. 删除链表的倒数第N个节点
链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 示例: 给定一个链表: 1->2->3->4->5, 和 n = 2. 当删除了倒数第二个节 ...
分类:其他好文   时间:2020-03-21 00:01:26    阅读次数:69
852. Peak Index in a Mountain Array
"https://leetcode.com/problems/peak index in a mountain array/" 给定一个 mountain 数组(满足A.length = 3,There exists some 0 A[i+1] ... A[A.length 1]),求其最大值 此题 ...
分类:其他好文   时间:2020-03-20 22:27:10    阅读次数:65
LEETCODE 498. 对角线遍历
https://leetcode cn.com/problems/diagonal traverse/ ...
分类:其他好文   时间:2020-03-20 22:05:26    阅读次数:53
刷题49(力扣3道题)
84.最小的k个数 题目链接 https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/ 题目描述 输入整数数组 arr ,找出其中最小的 k 个数。例如,输入4、5、1、6、2、7、3、8这8个数字,则最小的4个数字是1、2、3、4。 示例 ...
分类:其他好文   时间:2020-03-20 21:58:37    阅读次数:96
6275条   上一页 1 ... 81 82 83 84 85 ... 628 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!