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.
Approved
Approved
I don't know math incredibly well, but I feel like this was really poorly worded. Wasn't sure what it wanted me to do for a while.
added random tests to Rust
Fixed JS.
Lua translation!
Reference solution was buggy and returned wrong expected result for integer=2. Should be fixed now.
Can you post your code, so i could use it to reproduce and fix the issue?
There is a problem with one assertion in the Elixir version.
The exercise requires to return a sorted list, but it fails when it gets [1, 2] it is supposed to expect [2, 1]
How can this code be a best practice? It is at least twice as slow as the mathematical method of calculating the square root of a number
True but you have to use floor division in that case, otherwise you will get an error for range doesn't work with floats
very good
Rust (and probably other languages) doesn't have a test for square numbers, so plenty of solutions double count the square root.
At some point your solution returned
"15 is a prime"
, while it should return[ 3, 5 ]
.expected '15 is a prime' to deeply equal [ 3, 5 ] what?
Loading more items...