WHCSRL 技术网

分糖果python

  1. class Solution:
  2. def distributeCandies(self, candyType: List[int]) -> int:
  3. return min(len(set(candyType)), len(candyType) // 2)

推荐阅读