We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 704285e commit 7c6f0b2Copy full SHA for 7c6f0b2
javascript/0347-top-k-frequent-elements.js
@@ -54,7 +54,6 @@ var topKFrequent = function(nums, k) {
54
if (k < 1) break;
55
if (el) {
56
for (let el2 of el) {
57
- if (k < 1) break;
58
ans.push(el2);
59
k--;
60
}
0 commit comments