Skip to content

Commit dbdc945

Browse files
author
Chris Cooper
committed
Change variable name from c to count
1 parent 9d97e13 commit dbdc945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/0621-task-scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def leastInterval(self, tasks: List[str], n: int) -> int:
2626
counter = collections.Counter(tasks)
2727
max_count = max(counter.values())
2828
min_time = (max_count - 1) * (n + 1) + \
29-
sum(map(lambda c: c == max_count, counter.values()))
29+
sum(map(lambda count: count == max_count, counter.values()))
3030

3131
return max(min_time, len(tasks))

0 commit comments

Comments
 (0)