Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
You didn't break each case in the switch. Meaning that when the code meets
n
, your code increment north, south, west, and east. This shouldn't happen, obviously.Your code fails to address this -->
There are no fractions of people. At the end of each year, the population count is an integer: 252.8 people round down to 252 persons.
This comment is hidden because it contains spoiler information about the solution
Please use appropriate markdown formatting when posting code.
No.
When you're unsure, please use the
Question
label instead of theIssue
label as the latter is for provable kata issues. See https://docs.codewars.com/training/troubleshooting#post-discourse.