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.
/
Actually yours and his solutions are O(n^2) so you can't say his solution is a much slower one.
But I like the way you search for palindromes in your solution tho!
Because in production code other people need to be able to fully understand the code and there is lots of it, so they don't want to spend long periods of times trying to work out what is going on.
why not?
I understand, that you probably wouldn't write it this way, for production code. But I still like the logic behind this.
it can't be a best practice with so much performance waste
it can't be a best practice with so much performance waste
thanks for
The log appears above the test result
If it says instead got: 1, your function returned 1. The log appears above the test result, so maybe you're confusing the input of one tests with the result of another:
The tests are ok.
What's wrong with a test with input
1.5 '3'
(JS)?it can't be 'best practices' with a performance waste
it can't be 'best practices' with so much performance waste
This comment is hidden because it contains spoiler information about the solution
Nota n issue of the kata (more than 14000 people passed it). Maybe a CW problem.
When I click train button (https://www.codewars.com/kata/tortoise-racing/train/) I have
undefined method 'username' for nil:NilClass
(Looks like there was a server error! (500)). Any help?Loading more items...