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.
Nice idea!
I guess that settles this issue...
Yes, I understand your comment, but this evidently does not apply here, because old solutions still pass in all language versions. An they pass by a wide margin. Less than 9000ms is well below th cut-off
As a quick first test I ran a few of the most recent accepted solutions and oldest solutions (see below) using Node v14.x (results for other nodes in parentheses). Indeed, some of the recent solutions time out. Maybe they passed with older nodes, but I tested that for only one. The three oldest solutions all pass consistently by a wide margin. There is some significant variation in time for subsequent attempts, possibly connected to server load. I ran these tests on a Saturday afternoon European time.
Conclusion, the kata still works. It is not enough to have just any logarithmic complexity algorithm. Also the code needs to be performance optimised. This is possible: monadius' solution is on average 15% faster than my initial solution.
I hope that helps. Good luck!
recent sollutions:
old solutions:
I'll look into that. Just give me few days, I am a bit on a tight schedule at the moment.
This comment is hidden because it contains spoiler information about the solution
Sorry, my question was not well phrased. I understand, the requirement is only up to a million. But the algorithm used in the lambda will also work for larger numbers. But how large? I think "one billion" should be the first number that doesn't work anymore, or am misreading the code?
In the last line of the Sample Test Cases a closing brace is missing. Should read:
Thank you, for the Julia translation. Unfortunately, I have never used Julia before, so I am not sure how I could properly review your translation. Would someone proficient in Julia please review the translation and give me some feed-back, if they can't approve the translation themselves? Cheers!
This comment is hidden because it contains spoiler information about the solution
yes, I believe it is reasonalby hard :-) at least that was the intention.
algorithms that are linear in the input interval will certainly fail. But also logarithmic complexity algorithms might fail if they are not efficiently implemented.
I doubt that there are still undiscovered mistakes in the test cases
the error messages means
conclusion: The test works as expected.
Unfortunately, I have no iea, what you wish to express. I you believe there is a mistake (which might very well be the case) try to make a proper argument and carefully describe, why you believe something is wrong. It is a huge pain to try to guess what some hastily typed comment might convey.
there is no matching edge case. Neither in the example test nor in the submission tests. Start and end don't show up for the fixed tests because you can see the values after successful submission, which is not the case for Random Tests, obviously.
well, if you can do it for 3 digits, you probably can do it for 1 digit. And then you are probably already very close to the solution. Good luck.
This comment is hidden because it contains spoiler information about the solution
since I don't know your code I wouldn't be able to tell. The submission tests contain a large number of random tests. So if your code contains any inefficiency, it will certainly time out.
Loading more items...