LeetCode Weekly Contest 54是LeetCode举办的第五十八场正式周赛,共4道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-54/
题解列表:
LeetCode 697. Degree of an Array
LeetCode 696. Count Binary Substrings
最后更新于 .
LeetCode Weekly Contest 54是LeetCode举办的第五十八场正式周赛,共4道题目,比赛时长1.5小时。
比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-54/
题解列表:
LeetCode 697. Degree of an Array
LeetCode 696. Count Binary Substrings
最后更新于 .
On an infinite number line (x-axis), we drop given squares in the order they are given.
The i-th square dropped (positions[i] = (left, side_length)) is a square with the left-most point being ...
最后更新于 .
LeetCode 698. Partition to K Equal Sum Subsets
Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all equal.
Example 1: ...
最后更新于 .
LeetCode 696. Count Binary Substrings
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped ...
最后更新于 .
LeetCode 697. Degree of an Array
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.
Your task is to find the smallest ...