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.
Approved :)
But one sentence about how "garden of edens" exist should clear that up, although there hasnt been any garden of eden in 8x8 or smaller found yet so probably evry tests case will have a solution anyway. Also to completly avoid such patterns you would have to run a reference solution on each test case, which would lower the amount of tests. Or generate the test cases by running a pattern forward, but then you only get quite sparse patterns.
Yes the assertion feedback is something I already wanted to enhance some time ago :D
Ok I will change it to infinite boards then. There are also some interesting cases (found by doooom below) where a (m+2)x(n+2) predecessor doesnt exist, but a (m+4)x(n+4) does exist. Those then could also be tested maybe (Although the chance is very slim that this happens during random tests).
But I dont have too much time at the moment so could take a bit..
It seemed to me that the format of the answer is clearly described (that it should be bigger to make solutions more often possible and that the extra cells should die). But maybe I can clarify it more, or change the format to same sizes. Also my solution at least doesnt pad the input board, havent looked at all the others.
I dont know why I chose finite worlds back then. An infinite world seems to me like the more natural setting for the task now. Then you wouldnt even have to define a certain fixed dimension for the answer, as long as it evolves into the goal somewhere and the only living cells belong to the goal pattern. Could invalidate a lot solutions, not sure, but I wouldnt be against changing the kata to infinte boards.
Its not? There just arent big enough test cases to see a difference. Try
triangular 100000000 `shouldBe` 5000000050000000
for example.t3l3f00n is the other one. Maybe he didnt press submit or its a mistake from codewars.
Also if you changed some stuff in the tests, its possible that his solution got invalidated and is hidden by default.
Approved, I added one syntax example
Nice, I'll look at it tomorrow
Some things have already been done:
Duplicate: https://www.codewars.com/kata/595970246c9b8fa0a8000086/
This comment is hidden because it contains spoiler information about the solution
A lot of typos, for example its 'variable' not 'varible'.
Also a set is not unchangeable
Sure I think thats a good idea
Fixed the tests. I also dont see how other values are stricly necesarry but my js knowledge is very limited..
Great to hear!
I fixed the typo, thanks.
Loading more items...