Tapan Rachchhtapanrachchh.hashnode.devยทJun 12, 202475. Sort Colorsclass Solution: def sortColors(self, nums: List[int]) -> None: c = Counter(nums) count = [] for e in range(3): count += [e] * c[e] for i in range(len(nums)): nums[i] = count[i]leetcodeAdd a thoughtful commentNo comments yetBe the first to start the conversation.