Skip to content

Commit 5ea6ee1

Browse files
committed
Solution to 1025
1 parent 4c96f24 commit 5ea6ee1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/unresolved/1025.divisor-game.jl renamed to src/problems/1025.divisor-game.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ---
22
# title: 1025. Divisor Game
33
# id: problem1025
4-
# author: Tian Jun
5-
# date: 2020-10-31
4+
# author: Indigo
5+
# date: 2022-04-14
66
# difficulty: Easy
77
# categories: Math, Dynamic Programming
88
# link: <https://leetcode.com/problems/divisor-game/description/>
@@ -52,5 +52,5 @@
5252
## @lc code=start
5353
using LeetCode
5454

55-
## add your code here:
55+
divisor_game(n::Int) = iseven(n)
5656
## @lc code=end

test/problems/1025.divisor-game.jl

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@testset "1025.divisor-game.jl" begin
2+
@test divisor_game(2) == true
3+
@test divisor_game(3) == false
4+
end

0 commit comments

Comments
 (0)