We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c96f24 commit 5ea6ee1Copy full SHA for 5ea6ee1
src/unresolved/1025.divisor-game.jl renamed to src/problems/1025.divisor-game.jl
@@ -1,8 +1,8 @@
1
# ---
2
# title: 1025. Divisor Game
3
# id: problem1025
4
-# author: Tian Jun
5
-# date: 2020-10-31
+# author: Indigo
+# date: 2022-04-14
6
# difficulty: Easy
7
# categories: Math, Dynamic Programming
8
# link: <https://leetcode.com/problems/divisor-game/description/>
@@ -52,5 +52,5 @@
52
## @lc code=start
53
using LeetCode
54
55
-## add your code here:
+divisor_game(n::Int) = iseven(n)
56
## @lc code=end
test/problems/1025.divisor-game.jl
@@ -0,0 +1,4 @@
+@testset "1025.divisor-game.jl" begin
+ @test divisor_game(2) == true
+ @test divisor_game(3) == false
+end
0 commit comments