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.
Looks great! Thank you!
Ta. It's here.
I tightened up the constraints some ( in your version, there was no tiebreaker between possible answers
[0,1,4]
and[0,2,3]
, and performance was not an issue ), and do not promise unique values in inner arrays. But it's essentially the same, and I think my solution would still solve your problem. I would have submitted the shorter, slower solution if I'd had the chance. ( I defined some things myself in JS that are library functions in Haskell. ) JS version may be forthcoming if this doesn't bomb immediately.That is fine with me. All I needed was the solution, it had haulted my project for several weeks and I had run out of ideas. Pretty cool you managed to solve it almost immediately.
The idea is not bad though.
Mind if I make it into a kata? You can forfeit and steal the solution all you like if that actually was your intent.
The last test fails because it passes the same input as the previous test ( so the header is incorrect ), so the expected value is incorrect.
he is. His solution already got invalidated.
Questions remain: where does it say so, and how can we look into author's head to see his intent?
BTW, author has solved
1
high-level kata, and I can't find his solution, so I don't know if he's a cheater or not. ( And that kata is mine, and I spent days on it doing it from scratch ! )It's not the "solution", but the "initial solution", that is in the prelaoded section.
That's the thing...
The solution should not already be defined in
Preloaded
.That prevents solutions in the form
const solution = ..
( aside from not being whatPreloaded
is actually for ).7 and counting .. can we get to 10 !?
Where's it say so? I may have done that in the past .. :O
I think I created at least two kata to see what better solutions than mine people came up with. They did have random tests though, and I could already solve them.
Creating katas to fish solutions is forbidden on CW
I may have misunderstood the requirements ( see below :[ ), but would
[2,4,7]
not be a better answer?( If the answer is yes, there's your fifth
Issue
. I don't think I have seen a worse kata in this regard .. :)Needs random tests
Third submit test expects incorrect answer
Loading more items...