码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
0287. Find the Duplicate Number (M)
Find the Duplicate Number (M) 题目 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least ...
分类:其他好文   时间:2020-06-25 09:20:33    阅读次数:64
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-24 23:53:58    阅读次数:104
496. Next Greater Element I
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' ...
分类:其他好文   时间:2020-06-24 23:43:31    阅读次数:50
poj 2406 Power Strings
Power Strings Time Limit: 3000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u Submit Status Description Given two strings a and b we define a* ...
分类:其他好文   时间:2020-06-24 21:40:19    阅读次数:63
次小生成树
The Unique MST Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 30194 Accepted: 10809 Description Given a connected undirected graph, tell i ...
分类:其他好文   时间:2020-06-24 21:33:23    阅读次数:67
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-24 12:04:23    阅读次数:38
268. Missing Number
package LeetCode_268 /** * 268. Missing Number * https://leetcode.com/problems/missing-number/description/ * * Given an array containing n distinct nu ...
分类:其他好文   时间:2020-06-24 00:06:34    阅读次数:63
【leetcode】1486. XOR Operation in an Array
题目如下: Given an integer n and an integer start. Define an array nums where nums[i] = start + 2*i (0-indexed) and n == nums.length. Return the bitwise X ...
分类:其他好文   时间:2020-06-22 15:49:58    阅读次数:98
【leetcode】1464. Maximum Product of Two Elements in an Array
题目如下: Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]- ...
分类:其他好文   时间:2020-06-22 15:42:18    阅读次数:67
【leetcode】1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
题目如下: Given a rectangular cake with height h and width w, and two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the di ...
分类:其他好文   时间:2020-06-22 15:31:47    阅读次数:45
24278条   上一页 1 ... 28 29 30 31 32 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!