Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • 15306903?v=3

    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!

  • 15306903?v=3

    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

  • 15306903?v=3

    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?

  • 15306903?v=3

    Thank you for leaving this template. I used this example and was able to submit my Javascript solution.

  • 15306903?v=3

    This comment is hidden because it contains spoiler information about the solution

  • 15306903?v=3

    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

  • 15306903?v=3

    i'm not sure what to return when the array is empty? can't see anything about that in the description.

  • 15306903?v=3

    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

  • Profile pic

    Love this kata, made me laugh :)

  • Profile pic

    thank you for the advice! shall include some of those too

  • Profile pic

    Thanks matt c. Random test cases are included now

  • Profile pic

    That's really good feedback! I will adjust the kata. Thank you :)

  • Profile pic

    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?

  • 15306903?v=3

    This comment is hidden because it contains spoiler information about the solution

  • Profile pic
  • Loading more items...