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.
This is the main idea of this kata. By simply iterating over all the numbers, your solution will not go through time, since in the test examples there are numbers up to 10 ^ 9. Try to think of a faster algorithm. Thank you for paying attention to my kata, I am sure that you will definitely be able to solve it!
Thanks for your feedback! This is my first kata and I will try to improve it.