码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
浙大保研2019年上机题 7-2 Zigzag Sequence (25分)
7-2 Zigzag Sequence (25分) This time your job is to output a sequence of N positive integers in a zigzag format with width M in non-decreasing order. A ...
分类:其他好文   时间:2020-06-26 14:45:16    阅读次数:81
[LeetCode] 1282. Group the People Given the Group Size They Belong To
There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the group ...
分类:其他好文   时间:2020-06-26 11:00:48    阅读次数:51
[LeetCode] 1060. Missing Element in Sorted Array
Given a sorted array A of unique numbers, find the K-th missing number starting from the leftmost number of the array. Example 1: Input: A = [4,7,9,10 ...
分类:其他好文   时间:2020-06-26 10:52:26    阅读次数:72
全排列2 · Permutations
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2, ...
分类:其他好文   时间:2020-06-25 23:47:18    阅读次数:92
0030. Substring with Concatenation of All Words (H)
Substring with Concatenation of All Words (H) 题目 You are given a string, s, and a list of words, words, that are all of the same length. Find all star ...
分类:其他好文   时间:2020-06-25 21:20:39    阅读次数:56
Reversing Linked line
Reversing Linked List Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, give ...
分类:其他好文   时间:2020-06-25 14:13:09    阅读次数:56
Leetcode: Numbers With Repeated Digits
description Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit. Example In ...
分类:其他好文   时间:2020-06-25 14:09:06    阅读次数:65
Leetcode: 1434. Number of Ways to Wear Different Hats to Each Other
Descpition There are n people and 40 types of hats labeled from 1 to 40. Given a list of list of integers hats, where hats[i] is a list of all hats pr ...
分类:其他好文   时间:2020-06-25 13:58:26    阅读次数:56
220. Contains Duplicate III
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:其他好文   时间:2020-06-25 12:23:09    阅读次数:74
0275. H-Index II (M)
题目 Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the re ...
分类:其他好文   时间:2020-06-25 09:37:51    阅读次数:61
24278条   上一页 1 ... 27 28 29 30 31 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!