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.
Sorry but timing out has never been a kata issue. A code adapted to Js is not necessarily adapted to Python. You can notice that almost 5500 people passed the Python kata.
As I don't use JS I can't compare the range of test cases between the 2 languages to see if there is a discrepancy:
For reference: if any JS mod/user wants to compare the 2 test suites, Python currently has 40 random tests with: m from 200-1000 and n from 1100-6000.
Python has 1 big fixed test with m=5000, n=10000.
@platospv - while we wait for a JS user to check this Issue, if you have solved kata in JS, can you see roughly what the size of the test suite is? How many tests, and "how big" the inputs are?
This comment is hidden because it contains spoiler information about the solution
Because 2071 is the next number bigger than 2017 with the same digits, and 7210 is not the next number after 2017 with the same digits.
This comment is hidden because it contains spoiler information about the solution