Hey, with my inital solution I hard coded the 'B's and the 'b's as I didn't realise other letters would be used. Maybe make that clear in the kata description? Sorry if you have and I just can't see it!
Hi, I think in the description you could give an example of what the function should return. Then the reader can figure out what they need to do with their results. Also, in your solution some of your arrays aren't sorted. If that's how it's meant to be, you'll need to give the reader the necessary information
Hi franzmoro88, I noticed how in some of your random tests i'll get an error saying the path array should not start from [0,0]. But in the tests prior to the random tests it will say path array should start from [0,0]. Maybe have a look at these errors?
This comment is hidden because it contains spoiler information about the solution
okay, I've got it now. Consider adding in the description that the function should return n as a string if the array is empty. I only knew this by looking at the test expected result
i'm not sure what to return when the array is empty? can't see anything about that in the description.
hey! i think they are strings and the reason they don't have '' around them is because they are single words, unlike the others. I wondered the same and this is the conclusion i came to. It's just the way the function outputs the resulting object
Love this kata, made me laugh :)
thank you for the advice! shall include some of those too
Thanks matt c. Random test cases are included now
That's really good feedback! I will adjust the kata. Thank you :)
Hi Kyle, yes. The idea is that you would store the original recipe in the cake function. The function call cake('butter', 50) addresses the question: If I only have 50g of butter, how much would I need of all the other ingredients? Does that make sense?