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.
In Java, there is 1000 tests with
2_000_000 <= n <= MAX_INT
. How much time does such set of inputs runs on your local IDE?Java. Same problem. Works fine in IntelliJ even with large numbers from tests such as (2007009836, 2075337295 etc) but times out when attempting on the site. Tried two solutions: for (was very fast in IntelliJ) and streams(was significantly slower compared to "for")
Not a kata issue, your code is not fast enough with large inputs, which values are you using in your IDE?
I've tried like 3-4 variations of code that pass the test, but when attempting it times out each time. My solutions work in my IDE but seem to time out each time here. Have refreshed page, tried diffeent browsers, waited 24 hours, still times out when clicking "attempt".