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.
You didn't return an array, so... it's up to you to be blamed?
That's beacuse you are getting no results with your query. As the resullt query returns an empty array [].
I was a really fun Kata to play around. Congratulations to the author.
Probably I will try making the same but with the conditions in my Country.
It looks like you're returning a method instead of a number. Maybe ensure you're returning a number?
I am deeply confused. The goal of the kata is to return a list of all the perfect squares, in ascending order, from an array of numbers. 4 definately is a perfect square, and belongs in the final result of that test. I am going to mark this as resolved, since this seems to be a non-issue.
This comment is hidden because it contains spoiler information about the solution
My code work fine in my local machine but when tryingto submit the test always return the same
I don't know if the is something wrong with the test. Could someone take a look.
I dont understand. You are looking for perfect squares here is a list of perfect squares http://www.mathwarehouse.com/arithmetic/numbers/list-of-perfect-squares.php, in the last test you expect 4 to be in the solution, but in the given array there is no 2 so is not posible to be a 4 in the solution.
This is the test.
Test.assert_equals(get_squares([4,1,16,1,10,35,22]), [1,4,16]).
So it is impossible to be a 4 in the solution
How does 4 rely on 2?? We're looking for squares of all natural numbers, not squares of numbers already in the array.
This comment is hidden because it contains spoiler information about the solution