码迷,mamicode.com
首页 >  
搜索关键字:beginners problems    ( 6414个结果
210. Course Schedule II
package LeetCode_210 import java.util.* import kotlin.collections.ArrayList /** * 210. Course Schedule II * https://leetcode.com/problems/course-sched ...
分类:其他好文   时间:2020-06-30 22:58:57    阅读次数:116
207. Course Schedule
package LeetCode_207 import java.util.* import kotlin.collections.ArrayList /** * 207. Course Schedule * https://leetcode.com/problems/course-schedule ...
分类:其他好文   时间:2020-06-30 22:55:21    阅读次数:64
LeetCode 剑指 Offer 09. 用两个栈实现队列 | Python
剑指 Offer 09. 用两个栈实现队列 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof 题目 用两个栈实现一个队列。队列的声明如下,请实现它的两个函数 appen ...
分类:编程语言   时间:2020-06-30 20:25:53    阅读次数:64
128. Longest Consecutive Sequence
package LeetCode_128 /** * 128. Longest Consecutive Sequence * https://leetcode.com/problems/longest-consecutive-sequence/description/ * * Given an un ...
分类:其他好文   时间:2020-06-30 00:48:00    阅读次数:48
【LeetCode】链表
24. Swap Nodes in Pairs https://leetcode.com/problems/linked-list-cycle/ Given a linked list, swap every two adjacent nodes and return its head. You m ...
分类:其他好文   时间:2020-06-29 22:41:37    阅读次数:55
LeetCode 215. 数组中的第K个最大元素 | Python
215. 数组中的第K个最大元素 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/kth-largest-element-in-an-array 题目 在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素, ...
分类:编程语言   时间:2020-06-29 19:59:13    阅读次数:66
剑指Offer 39 - 数组中出现次数超过一半的数
力扣链接:https://leetcode-cn.com/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof/ 题目描述 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。你可以假设数组是非空的,并且给 ...
分类:编程语言   时间:2020-06-29 09:24:53    阅读次数:54
LeetCode 209. 长度最小的子数组 | Python
209. 长度最小的子数组 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/minimum-size-subarray-sum 题目 给定一个含有 n 个正整数的数组和一个正整数 s ,找出该数组中满足其和 ≥ s 的长度最小的连续子数组,并返回其 ...
分类:编程语言   时间:2020-06-28 22:36:49    阅读次数:67
LeetCode | 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Python】
LeetCode 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Easy】【Python】【二叉树】 Problem LeetCode Given the root node of a binary search tree (BST) and a val ...
分类:编程语言   时间:2020-06-28 20:49:28    阅读次数:61
15. 三数之和
给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有满足条件且不重复的三元组。注意:答案中不可以包含重复的三元组。 示例:给定数组 nums = [-1, 0, 1, 2, -1, -4],满足要求的三元组集合为 ...
分类:其他好文   时间:2020-06-28 20:25:10    阅读次数:36
6414条   上一页 1 ... 38 39 40 41 42 ... 642 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!