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.
For extra challenge you can try testing your solution with the input from this post:
When I add it to example tests, my solution handles it in ~7-7.5s
I think you are misinterpreting test results:
797275 + 5057 + 4027 + 4027 = 810386
takes for you 1s locally, then it is definitely too slow, or, at least, it's not a local test performed correctly. What you would have to try is to run 100 tests with inputs which go up to 7 elements of 6-8 digits. For example, 10 of tests I got is:Try to solve above inputs locally, but to me it looks like you have to optimize your code beyond maximum. It never is a hardware problem.
I check on the tests given to me.
It takes about 3-6 seconds to find 1 equation in the tests.
And in IDEA it takes less than 1 second.
Right now
797275 + 5057 + 4027 + 4027 = 810386
Here it is solved in 6 seconds, and in IDEA in 1 second.
I have already optimized my code to the maximum.
I think there is a hardware problem here.
Solutions being slow is not generally considered to be a kata issue. You jsut need to make yoursolution more efficient.
When you say that your code works in IDEA, does it mean that it works for the same amount of tests, of the same sizes, with the same inputs?
Kotlin
here in the tests my result is more than 16 seconds.
I get an error
Execution Timed Out (16000 ms)
but in IDEA my result is 6 seconds
Funny kata to solve.
Very nice computer programming concepts to exercise with.
Could you provide the issue you're encountering ? We can't help you if we don't know what's the error.
(I won't be able to help you as I didn't solve but others will if they have all the information)
Not sure if someone is still working on the kata.
Had an issue pop up with some of the PHP test cases. Doesn't seems to be an issue on my side.
The code runs fine in my IDE but I get "undefined array key" in the test case file when running the code on CW.
Let me know if other people are experiencing the same thing and if I maybe need to have a look at my code again (:
Go look up sliding puzzle and how inversions play a role. If a certain amount of numbers are "out-of-place" the puzzle becomes unsolvable.
3 April 2025. 478 lines. Python. 3662.47ms - 4524.12ms
It took me 65 hours during 15 days.
Great and very challenging kata.
Mine success all example test but failed random test .. whaaaat :((
Unfortunately it didn't. At least not for me. Why would "you can count it as one work capacity" mean that a job can be shared between two (or more) workers?
It took me a lot of time (really a lot) to get what you meant.
The 5th test solution "RRRDDRDDRDRULLLUULUUURRRDDLURRDRDDR" is also missing for the Rust version.
Enabled in this fork
Loading more items...