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.
sqrt is calculated 2 times :(
Thank you! I looked over your code and I could see the recursive call. Way cleaner. :)
This comment is hidden because it contains spoiler information about the solution
What is not good in your solution is that you analyze the same number several times. For example, numbers = [1, 2, 1, 3, 2, 3, 4], so you calculate count of 1, then calculate count of 2 and again of 1, when you have already calculated for 1. Because of this your code is redundant. Try not to do unuseful work :)
Codestyle could be better :)