码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
441. Arranging Coins
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:其他好文   时间:2020-07-01 23:59:14    阅读次数:86
[LeetCode] 332. Reconstruct Itinerary
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tick ...
分类:其他好文   时间:2020-06-30 09:15:20    阅读次数:87
0045. Jump Game II (H)
Jump Game II (H) 题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array r ...
分类:其他好文   时间:2020-06-30 09:14:16    阅读次数:59
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
1104 Sum of Number Segments (20分)(long double)
1104 Sum of Number Segments (20分) Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the s ...
分类:其他好文   时间:2020-06-30 00:44:09    阅读次数:60
【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
1492. The kth Factor of n
Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n sorted ...
分类:其他好文   时间:2020-06-29 10:05:07    阅读次数:60
1491. Average Salary Excluding the Minimum and Maximum Salary
Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the average salary of employees excluding the minimum ...
分类:其他好文   时间:2020-06-29 09:59:02    阅读次数:56
46. Permutations 全排列
Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1, ...
分类:其他好文   时间:2020-06-29 09:55:51    阅读次数:59
0043. Multiply Strings (M)
Multiply Strings (M) 题目 Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as ...
分类:其他好文   时间:2020-06-29 09:55:34    阅读次数:55
24278条   上一页 1 ... 24 25 26 27 28 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!