Ad
  • Custom User Avatar

    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!

  • Custom User Avatar

    Thanks for your feedback! This is my first kata and I will try to improve it.