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.
xd
wtf
I'm pretty sure you need to flag this as a spoiler, but I did it for you so no worries. :D
This comment is hidden because it contains spoiler information about the solution
.
.
.
Hey Samfolo, I would just study a normal spiral (not jumping corner to corner) and this very similar to that, at least my solution was. Good kata
Do you mean you encountered a test case with
size=4
andmandatory position=c3
? I took some special precautions to not generate unsolvable cases and such situation should not happen, so if you confirm this indeed was your case, I will take a look at that.I've got it, but it's timing out after 80 test cases, which is fair enough, but one of the first test cases has no valid 4-queen solution (c3).
I test-drove it.. forgot to make it a one-liner! hah.
I've basically sorted it, but random tests are saying: Expected "", instead got: [my_solution_here]..
is this normal? Having an empty string expectation even with input?
Edit: it actually gives me a (Test::Error) message.. is that on me or the kata?
didn't get any points... annoying.
Had to look at the answer as I had absolutely no idea where to go from 'unravelling' the spiral..
does anyone have any resources to understand this concept algorithmically?
I obviously missed the ".permutation" memo...
Loading more items...