Tap here to switch tabs
Problem
Submissions

Problem: Count Largest Group

med
30 min
Try to solve the Count Largest Group problem.

Statement

Given an integer n, each integer from 11 to n is partitioned into groups based on the sum of its digits.

Return the number of groups that have the maximum size.

Constraints:

  • 1≤1 \leq n ≤104\leq 10^4

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count Largest Group

med
30 min
Try to solve the Count Largest Group problem.

Statement

Given an integer n, each integer from 11 to n is partitioned into groups based on the sum of its digits.

Return the number of groups that have the maximum size.

Constraints:

  • 1≤1 \leq n ≤104\leq 10^4