Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:
其他好文 时间:
2020-11-13 13:21:44
阅读次数:
33
Difficulty: Medium Related Topics: Hash Table, String Link: https://leetcode.com/problems/group-anagrams/ Description Given an array of strings strs, ...
分类:
其他好文 时间:
2020-11-08 16:43:41
阅读次数:
19
You are given a sorted unique integer array nums. Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, ...
分类:
其他好文 时间:
2020-10-30 11:55:20
阅读次数:
20
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-10-27 11:41:41
阅读次数:
23
Difficulty: Medium Related Topics: Backtracking Link: https://leetcode.com/problems/permutations/ Description Given a collection of distinct integers, ...
分类:
其他好文 时间:
2020-10-27 10:57:46
阅读次数:
22
Given an input string s, reverse the order of the words. A word is defined as a sequence of non-space characters. The words in s will be separated by ...
分类:
其他好文 时间:
2020-10-18 10:19:49
阅读次数:
29
Description Xiaoqiang wrote a decimal number \(X\), but some of the handwriting has been blurred (we replaced it with ?). Now given another decimal nu ...
分类:
其他好文 时间:
2020-10-18 10:17:30
阅读次数:
29
浙江大学数据结构:01-复杂度2 Maximum Subsequence Sum (25分) Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be ...
分类:
其他好文 时间:
2020-10-07 20:34:58
阅读次数:
26
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num ...
package LeetCode_463 /** * 463. Island Perimeter * https://leetcode.com/problems/island-perimeter/description/ * * You are given row x col grid repres ...
分类:
其他好文 时间:
2020-09-17 23:30:18
阅读次数:
36