From bfee35a21c60e062c0033ba4e7e032b86dcadf7c Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Tue, 24 Sep 2024 04:50:56 +0900 Subject: Init --- 1_array_hashing/top_k_elements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '1_array_hashing/top_k_elements.py') diff --git a/1_array_hashing/top_k_elements.py b/1_array_hashing/top_k_elements.py index 13833f2..2539caa 100644 --- a/1_array_hashing/top_k_elements.py +++ b/1_array_hashing/top_k_elements.py @@ -50,7 +50,7 @@ class Solution: List[int]: elements list """ count = {} - freq = [[] for i in range(len(nums) + 1)] + freq = [[] for _ in range(len(nums) + 1)] for n in nums: count[n] = 1 + count.get(n, 0) -- cgit v1.2.3