So if we are given the input (1), we would expect the output to be 0 . If the floor is already a ground floor itself (0), it is as it is, just like the basements (negatives)
I'm not sure what the author has against america flooring conventions, but it took me longer to figure out what the actual problem was than it took to solve.
haha 100 %
Not a kata suggestion. Explanation below:
First floor -> 1
Ground floor -> 0
So if we are given the input (
1
), we would expect the output to be0
. If the floor is already a ground floor itself (0
), it is as it is, just like the basements (negatives)Not a kata issue.
Rejected, see remarks here
That's a skill issue, not a kata issue. Please close this issue and reopen it as a question, or ask for help on the Discord server.
I got a problem when it was -1, it said to be equal to 0 but I already have a code for that then still facing the same problem
Lua Translation
Code easy, description not.
Thank you acadet. I learned many interesting things while trying to complete this kata )))
That probably means your code fails certain random tests.
I'm not sure what the author has against america flooring conventions, but it took me longer to figure out what the actual problem was than it took to solve.
you have the two backwards, user2791371
Cool Kata, but i think the level is for minimum 7 kyu ;) :)
cool kata
Your function needs to
return
the result. The tests will ignore what you printed to console.Loading more items...