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 e9c6bb5 commit 341d57bCopy full SHA for 341d57b
solution/1300-1399/1399.Count Largest Group/README.md
@@ -74,7 +74,7 @@ tags:
74
75
最后返回 $ans$ 即可。
76
77
-时间复杂度 $O(n \times \log M)$,空间复杂度 $(\log M)$。其中 $n$ 为给定的数字,而 $M$ 是 $n$ 的数字范围。
+时间复杂度 $O(n \times \log n)$,空间复杂度 $(\log n)$。其中 $n$ 为给定的数字。
78
79
<!-- tabs:start -->
80
@@ -177,7 +177,7 @@ func countLargestGroup(n int) (ans int) {
177
178
```ts
179
function countLargestGroup(n: number): number {
180
- const cnt: number[] = new Array(40).fill(0);
+ const cnt: number[] = Array(40).fill(0);
181
let mx = 0;
182
let ans = 0;
183
for (let i = 1; i <= n; ++i) {
0 commit comments