Skip to content

Commit a621936

Browse files
authored
Removed extra spacing
1 parent 0de629a commit a621936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/1481-least-number-of-unique-integers-after-k-removals.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ var findLeastNumOfUniqueInts = function(arr, k) {
1111
const frequencies = {}
1212

1313
for (let i = 0; i < arr.length; i++) {
14-
frequencies[arr[i]] = (frequencies[arr[i]] && frequencies[arr[i]] + 1) || 1;
14+
frequencies[arr[i]] = (frequencies[arr[i]] && frequencies[arr[i]] + 1) || 1;
1515
}
1616

1717
const frequenciesArr = Object.entries(frequencies);
1818

19-
frequenciesArr.sort((a,b) => a[1] - b[1]);
19+
frequenciesArr.sort((a, b) => a[1] - b[1]);
2020
frequenciesArr.reverse();
2121

2222
while (k) {

0 commit comments

Comments
 (0)