Skip to content

Commit 70c1c7f

Browse files
authored
Update README_EN.md
1 parent 58d5215 commit 70c1c7f

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

solution/0200-0299/0216.Combination Sum III/README_EN.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,15 @@ function combinationSum3(k: number, n: number): number[][] {
676676
}
677677
return ans;
678678
}
679+
680+
function bitCount(i: number) {
681+
i = i - ((i >>> 1) & 0x55555555);
682+
i = (i & 0x33333333) + ((i >>> 2) & 0x33333333);
683+
i = (i + (i >>> 4)) & 0x0f0f0f0f;
684+
i = i + (i >>> 8);
685+
i = i + (i >>> 16);
686+
return i & 0x3f;
687+
}
679688
```
680689

681690
#### JavaScript
@@ -711,17 +720,6 @@ function bitCount(i) {
711720
}
712721
```
713722

714-
function bitCount(i: number): number {
715-
i = i - ((i >>> 1) & 0x55555555);
716-
i = (i & 0x33333333) + ((i >>> 2) & 0x33333333);
717-
i = (i + (i >>> 4)) & 0x0f0f0f0f;
718-
i = i + (i >>> 8);
719-
i = i + (i >>> 16);
720-
return i & 0x3f;
721-
}
722-
723-
````
724-
725723
#### C#
726724

727725
```cs
@@ -755,7 +753,7 @@ public class Solution {
755753
return cnt;
756754
}
757755
}
758-
````
756+
```
759757

760758
<!-- tabs:end -->
761759

0 commit comments

Comments
 (0)