1399. Count Largest Group
https://leetcode.com/problems/count-largest-group
Description
Given an integer n
. Each number from 1
to n
is grouped according to the sum of its digits.
Return how many groups have the largest size.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
1 <= n <= 10^4
ac
Previous1398. Customers Who Bought Products A and B but Not CNext1400. Construct K Palindrome Strings
Last updated