summaryrefslogtreecommitdiff
path: root/1_array_hashing/top_k_elements.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-28 12:48:24 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-28 12:48:24 +0900
commit9d2adfc00c421dd8c8f57fc4b8e242aac75067a5 (patch)
tree24e395f2757f131dfe46e1e812b5ad401747b181 /1_array_hashing/top_k_elements.py
parent02bf291151db5f20e1b8707d99b8cdbff00cacd1 (diff)
Init
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]