Skip to content

Commit

Permalink
src/bin/nim-game.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
bestgopher committed Jul 28, 2021
1 parent 521b918 commit a50fddf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/bin/nim-game.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fn main() {}

struct Solution;

impl Solution {
pub fn can_win_nim(n: i32) -> bool {
n % 4 != 0
}
}

0 comments on commit a50fddf

Please sign in to comment.