Re: [闲聊] 每日leetcode

楼主: leafff (LEAF)   2025-04-23 23:01:59
https://leetcode.com/problems/count-largest-group/description/
1399. Count Largest Group
给定一整数n,
将1到n的所有整数依各位数之和分组,
返回拥有最大长度之组别数目。
若n = 13,
则分组为[1,10], [2,11], [3,12], [4,13], [5], [6], [7], [8], [9],
有4组拥有2元素,
故返回4。

Links booklink

Contact Us: admin [ a t ] ucptt.com