Skip to content

Commit 341d57b

Browse files
authored
Update README.md
1 parent e9c6bb5 commit 341d57b

File tree

1 file changed

+2
-2
lines changed
  • solution/1300-1399/1399.Count Largest Group

1 file changed

+2
-2
lines changed

solution/1300-1399/1399.Count Largest Group/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ tags:
7474

7575
最后返回 $ans$ 即可。
7676

77-
时间复杂度 $O(n \times \log M)$,空间复杂度 $(\log M)$。其中 $n$ 为给定的数字,而 $M$ 是 $n$ 的数字范围
77+
时间复杂度 $O(n \times \log n)$,空间复杂度 $(\log n)$。其中 $n$ 为给定的数字。
7878

7979
<!-- tabs:start -->
8080

@@ -177,7 +177,7 @@ func countLargestGroup(n int) (ans int) {
177177

178178
```ts
179179
function countLargestGroup(n: number): number {
180-
const cnt: number[] = new Array(40).fill(0);
180+
const cnt: number[] = Array(40).fill(0);
181181
let mx = 0;
182182
let ans = 0;
183183
for (let i = 1; i <= n; ++i) {

0 commit comments

Comments
 (0)