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.
The only issue I had was that the kata started with the function defined as
getRequirements
, but it actually needs to begetRequired
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Lol, I feel dumb. I think it was the server being slow last night, because when I tried again this morning I got an actual response back (though still failing). Turns out I forgot to implement the ` operator... whoops! :) All good now!
I don't think it's my code (at least I hope not!). All the test cases that I've tried pass pretty quickly. For example...
finishes in about 4-5ms, and the test case given in the description always finishes in < 1ms. Does that seem reasonable?
I guess I'll try submitting again a little later, maybe the site is busy ATM.
I believe I have a working solution, but every time I submit I get a
Code timed out
error. Could it just be codewars being slow right now?I left a bug report, and now the console output is visible again. Was able to see where I was messing up, and now my solution is working! Nice kata, looking forward to tackling the binary tree one tomorrow :)
I might have commented too soon. Currently I get no console output when running the tests or submitting, other than the pass/fail message at the top. I just checked, and this appears to be a problem not specific to this kata (I'm actually not getting any console output from any kata at the moment). Not sure if the site is experiencing issues or what is going on. I'll try to run my solution again a little later.
It would be nice to get something back on failed submission. My code currently passes the test fixtures, but when I submit, it fails with no hint of what might be wrong.
Excellent work! This was a great challenge. Now I have to go back and study everyone else's solutions... :)
thanks!