Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9a180d6

Browse files
authored
feat: add js solution to lc problem: No.1025 (doocs#2623)
1 parent b136683 commit 9a180d6

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

solution/1000-1099/1025.Divisor Game/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ func divisorGame(n int) bool {
104104
}
105105
```
106106

107+
```js
108+
var divisorGame = function (n) {
109+
return n % 2 === 0;
110+
};
111+
```
112+
107113
<!-- tabs:end -->
108114

109115
<!-- end -->

solution/1000-1099/1025.Divisor Game/README_EN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ func divisorGame(n int) bool {
7878
}
7979
```
8080

81+
```js
82+
var divisorGame = function (n) {
83+
return n % 2 === 0;
84+
};
85+
```
86+
8187
<!-- tabs:end -->
8288

8389
<!-- end -->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var divisorGame = function (n) {
2+
return n % 2 === 0;
3+
};

0 commit comments

Comments
 (0)