[LeetCode]Partition to K Equal Sum Subsets

题目描述:

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:

Input ...

继续阅读

[LeetCode]Count Binary Substrings

题目描述:

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 consecutively ...

继续阅读

LeetCode Weekly Contest 53解题报告

LeetCode Weekly Contest 53是LeetCode举办的第五十七场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-53/

题解列表:

LeetCode 693. Binary Number with Alternating Bits

LeetCode 695. Max Area of Island

LeetCode 694. Number of Distinct Islands

LeetCode 691. Stickers to Spell Word