We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608852a commit a1e5179Copy full SHA for a1e5179
solution/1300-1399/1399.Count Largest Group/Solution.ts
@@ -1,5 +1,5 @@
1
function countLargestGroup(n: number): number {
2
- const cnt: number[] = new Array(40).fill(0);
+ const cnt: number[] = Array(40).fill(0);
3
let mx = 0;
4
let ans = 0;
5
for (let i = 1; i <= n; ++i) {
0 commit comments