We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Fundamentals
- Army Game
- Discussions
Army Game
Army Game
Sort by
recency
|
238 Discussions
|
Please Login in order to post a comment
R script
This is my solution:
Solution in JS. Testing for 4 conditions: 1. Row and column numbers are both even. 2. Row and column numbers are both odd. 3. Row number is odd and column number is even. 4. Row number is even and column number is odd.
c#
public static int gameWithCells(int n, int m)