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
Chrono79 said it all.
😏
(UwU✿)
meow
This code should not be "Best practice" for at least the 2 following reasons:
It is inefficient since it checks the entire grid for every move instead of focusing on the pieces around the latest one added to the grid.
The 2 if statements are so complex and similar that they should be put into a function taking either 'Y' or 'R' as parameter. This would help during development and maintenance.
It seems you're returning a float instead of a double. See the type of your function in the initial code.
I'm getting similar issues with this kata on the last expected test in C++. The test is expeting 12.74 and my result is 12.74 but still marks it as incorrect.
If the input is incorrect, the output doesn't matter, fam.
wish I would've known about that
if you input a dna string with wrong characters it will just convert them all to G
I think the tests for this are faulty.
Any inputs that are multiples of 8 should take 5minutes per each set of 8 but this doesnt seem to be the case.
Also one of the tests has 10 eggs which takes ten minutes and yet the test for 20 also takes 10 minutes.
I'm packing fudge as we speak
This comment is hidden because it contains spoiler information about the solution
_0_ExampleTests
Expected: equal to 12.74
Actual: 12.74
_1_BasicTests
Expected: equal to 3.54
Actual: 3.54
_2_RandomTests
Expected: equal to 25.49
Actual: 25.49
What's up with it?