summaryrefslogtreecommitdiff
path: root/1_array_hashing/top_k_elements.py
diff options
context:
space:
mode:
Diffstat (limited to '1_array_hashing/top_k_elements.py')
-rw-r--r--1_array_hashing/top_k_elements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/1_array_hashing/top_k_elements.py b/1_array_hashing/top_k_elements.py
index 08c1400..11e0714 100644
--- a/1_array_hashing/top_k_elements.py
+++ b/1_array_hashing/top_k_elements.py
@@ -63,7 +63,7 @@ class Solution:
res.append(j)
if len(res) == k:
return res
- return [-1]
+ return []
case1 = [1, 2, 2, 3, 3, 3]