Well, it is bad.-
He means that this is the most inefficient code for this exercise and if someone thinks that doing O(n**2) when it could be O(n) is best practices that means said person have no idea what constitutes as best practices
If you like a shirt, you shouldn't buy the shirt.
No random tests.
hahaha this made my day :)
:> just because of the effort :>
But sometimes, you will have to do things like this, for example Arduino :> So this would help you to train your mental strength.
BUT THIS IS NOT A GOOD PRACTICE !!!!!
The definition of "first domino" should be clarified. The instructions say to find the state if the first domino is pushed over. Therefore in a case such as " |" the result should be " /", since that is the result of pushing the first domino. The space is not a domino.
and certainly not DTSTTCPW
Yes I agree on this.
Better bearing performance in mind
The store is always on the left which was spec'd in the problem description.
There wasn't a default test for handling there being a shorter distance corral than the first one though. I think I'll add your test case so that gets covered.
Not an issue (issues == failure of the kata itself, here, this is only your implementation that fails!)
If you want to debug your code, print the input to the console.
This comment is hidden because it contains spoiler information about the solution
my solution passes all the sample tests but doesn't pass any random tests.. it says expected zero instead got: then a random number ? when should the function return zero ?