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
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
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
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
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
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
题目如下: 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
题目如下: 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
题目如下: 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