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
Hi, first of all thanks, my code has now passed.
Have another Q. Forgive me if I am wrong but I thought breaks were used so that when the correct case is found it breaks out of the switch, therefore saving memory. With my line of thinking, why would it continue to more 1's to n when the other cases don't meet the criteria.
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.This comment is hidden because it contains spoiler information about the solution
Like this code, after 6 months of operation Java only just learned that a + sign next to a primitive turns it into a String!
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.This comment is hidden because it contains spoiler information about the solution
I'm not sure my solution works? and why did it work when I set the temp variable to one in the min function and not when I set it to 0?