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.
Tests are correct. We don't know what you are printing, we don't know which language you are using. Make sure to follow carefully the description. Anyway, this is not a suggestion (?).
You should have a look there: https://docs.codewars.com/training/troubleshooting/
I found out that:
But instructions says othewise
Same here
You must put quotes around
fmt
. Not a kata issue.This comment is hidden because it contains spoiler information about the solution
I don't do Go, so I wouldn't know :P
@B1ts it's a standard codewars compiler.
Now you know what you have to do (and it is explicitly stated in the description).
It's normal
fmt
shows an empty slice when printingnil
here: in this casenil
is the value of an uninitialized container (and has length 0...). Go subtleties...Looking at the tests suite, actually the last test you see is with 2
nil
inputs. Not sure why your code prints them as[]
As already was mentioned by @GurovSD, Golang has a problem.
Two tests with an empty arrays. According to tests, the first result should be true and the second is false.
Look at this output:
Absolutely the same issue in Golang.
Look at this output:
Oh, thank you! Did not notice that. Just fixed it.
Your code returnrs true for a = 100, b = 1 and c = 1.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...