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
@B1ts it's a standard codewars compiler.
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:
This comment is hidden because it contains spoiler information about the solution
In the details writen "A word (string) of length 0 < str < 1000" but string of len 0 also has present.
Thanks. This line just confused me (from the
go doc
):"func Trunc(x float64) float64
Trunc returns the integer value of x
."What is difference between
math.Trunc(num)
and justint(num)
?Great!