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 comment is hidden because it contains spoiler information about the solution
yea I know, I'll get back to it
Thank you very much, I missed the case for
... /*.... /*.... */...
which was not handledhello there
I am having a bit of trouble with this kata (java)
Some of the tests fail and I can't explain why, but I did get one failure which I think was wrong
It has to do with comments, my code is throwing a exceptions while yours is not, and I believe this might impact the other tests (I get about 15 to 20 test failures for the whole test suite with wrong output)
The example I have is this:
for which my code removes the comments like so:
notice there is a stray /* somewhere in there
I have looked at the comparison many times and I can't see the problem, please take a look when you have some time
Thank you
alright, thank you for the reply
Hello there, I'm struggling a bit with this kata (java)
I have two problems, one about the duplicate pattern and the aother, not sure
For these example cases, how come your code does not throw an exception due to duplicate pattern definitions:
p153 defined twice:
p222 defined twice:
p305 defined twice
what am I missing?
I am getting a lot of random tests failing due to not throwing exceptions but my program outputs just fine
I am not sure if it's due to that recursion check, the "particular very high (but sensible) threshold"
For example this one works just fine for me:
I ask because the output does look a bit like a fractal for this one, but it still works
Is that the reason?
Also, another issue, sorry, this one for example:
I return *, but your code expects **
if broken into pieces a bit this is how it looks like:
so you can see it basically does nothing, am I blind?
Yes you are right, I have missed some things
Thank you very much for the reply
This comment is hidden because it contains spoiler information about the solution
Hi, I need a bit of help if possible
I have a problem with one of the random tests, this one:
My problem is that my algorithm finds 3 distinct valid possibilities when resolving the multiple choice area in the bottom left
I've reduced the board to make it more clear like so:
Game
I've marked the possible mines with M
My algorithm is basically attempting to place mines and counts if sufficient mines have been placed to satisfy the known number of mines on the discovered positions along the border (after the initial opening of obvious positions)
Both variant 1 and 2 are valid from this perspective
My issue is why are variant 1 and 2 not valid?
I've tried to reason in many ways but I don't see a problem with those placements
I've been doing this on paper like crazy and I can't figure out a criteria that would eliminate them
Also my algorithm seems to solve one of the tests which are not supposed to pass, this one
(I'll return with a explanation for this one)
I found why this one fails for me, my flat recursion is not right, so I am missing possible solutions, but the problem above still stands
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great kata, but I think more test cases are needed, I struggled more with the tests and the cropping algorithm rather than the actual problem :)
The eqSumPowDig is easy to understand, but the hasProperty is in chinese.