【Leetcode】767. Reorganize String

1

1 对于Counter,必须是for key, value in count.items()

2 heapq.heappop(heap)括号中的参数一定要带上,总是忘记

你可能感兴趣的:(【Leetcode】767. Reorganize String)