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.
This was a solid reminder to reread what is the required output, I wrote to output missing cones visually as a grid, just to wonder why it's asking me for a string lol.
Ah, didn't need a reminder how much I was annoyed by this problem lol.
This comment is hidden because it contains spoiler information about the solution
I don't know if you've read my followup comment, I fixed the algorithm now and it's Passed: 480 Failed: 46, the 46 are all edge cases for -1 which I am yet to implement.
You are correct.
Passed: 480 Failed: 46
Vastly improved the solution, the 46 failed are all edge cases that are supposed to return -1, guess I'll have to figure that out hm
I see, but how would 114 be expected from 414? Shouldn't it be 144? My program outputs 144, I thought the premise of the problem is the next lesser permutation consisting only of the original digits, 114 is 2 1s and a 4 from the original 414 (2 4s and a 1), and other such confusing inputs which simply seem incorrect, not to say my solution is proper nor flawless but there's numerous other people complaining about incorrect expectations for solutions, I'll keep testing but I'll definitely have to postpone this kata a bit as I am a bit annoyed by it at this point.
Passed: 106 Failed: 445
A lot say it should be wrong result, or I am misunderstanding the kata, i.e:
5500 should equal -1 shouldn't 5500 equal to 5050? When I run it the output is 5050
441 should equal 144 when it should be 414 etc.
Interesting...
huh, apparently I did, I thought this was just regular discourse, mb
I never said anything about a kata issue, I just said it's interesting because I'll have to figure out a faster method.
Passing all tests but timing out due to long runtime heh, interesting kata.
def solve(a, b):
isEviternity = 0
Well... that's a winner lol
First name Brute last name Force, admirable.