Skip to content

Commit 608852a

Browse files
authored
Update README_EN.md
1 parent 341d57b commit 608852a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ We enumerate each number in $[1,..n]$, calculate its sum of digits $s$, then inc
6565

6666
Finally, we return $ans$.
6767

68-
The time complexity is $O(n \times \log M)$, and the space complexity is $O(\log M)$. Where $n$ is the given number, and $M$ is the range of $n$.
68+
The time complexity is $O(n \times \log n)$, and the space complexity is $O(\log n)$, where $n$ is the given number.
6969

7070
<!-- tabs:start -->
7171

@@ -168,7 +168,7 @@ func countLargestGroup(n int) (ans int) {
168168

169169
```ts
170170
function countLargestGroup(n: number): number {
171-
const cnt: number[] = new Array(40).fill(0);
171+
const cnt: number[] = Array(40).fill(0);
172172
let mx = 0;
173173
let ans = 0;
174174
for (let i = 1; i <= n; ++i) {

0 commit comments

Comments
 (0)