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.
It was an exciting experience! Thanks a lot! This kata has made my brain sweat!
Thanks, I'll read
The tests aren't broken, your code is wrong. In PHP, the modulo operator converts both operands into integers before returning a result (which will also always be an integer), you'll have to find another way.
The kata works fine in Swift. Please read the documentation: https://docs.codewars.com/training/troubleshooting/
This is not a proper way to raise an issue. Please read the documentation: https://docs.codewars.com/training/troubleshooting/
The tests are broken!
Actually, my solution in Swift is
"input.map { (Double(Int(sqrt(Double($0)))) == sqrt(Double($0))) ? Int(sqrt(Double($0))) : ($0 * $0) }"
...and it works in Xcode playground on my Mac, but local compilator can't build it ((
I'm just trying to understand how it works..?
It would be good if you explain: What is "char2Lower", "modulus" etc...
Should I import some libraries maybe?