Ad
  • Custom User Avatar

    I am getting failing tests where the index and the position to move are the same, such as:

    Log: [ 8, 0, 8, 1, 3, 7 ] [ 4, 4 ]
    ✘ Expected: '[8, 0, 8, 1, 3, 7]', instead got: '[8, 0, 8, 1, 4, 7]'
    

    Is there something I've missed?

  • Custom User Avatar

    p.s. nice kata :)

  • Custom User Avatar

    It is not explicitly stated how the function should behave when the width is 0, as can happen in the random tests. Either add clear specs for this case, or make sure that the random tests always have a width > 0.

  • Custom User Avatar

    GiacomoSorbi, can you look into this?

  • Custom User Avatar

    The money belonged to the individuals. It was spent on things that benefited the whole group. So people who spent more are owed money by people who spent less.

  • Custom User Avatar

    Be more specific?

  • Custom User Avatar

    Ah my bad! Shoulda read more closely.

  • Custom User Avatar

    Maybe make it obvious that the order of the letters matters in the heterozygous genotypes, i.e. bB is wrong. From the example you could think that it was always the mother's letter that came first.

  • Custom User Avatar

    Can you be a bit clearer about what the issue is? From what you posted it looks like you rounded to one decimal place, when yeah you should have rounded to two.

  • Custom User Avatar
  • Custom User Avatar

    Could you be clearer about what is and what is not a valid image? Like not having spaces in, or not beginning with certain characters? You don't make it obvious in the description..

  • Custom User Avatar

    Nice kata, good instructions and example tests. Randomised tests would be a good addition.

  • Custom User Avatar

    I think you can also create the original recipe for them in the preloaded code part of the kata editor, then it's there and they can access it, but it doesn't have take up space in their code when they're solving it.

  • Custom User Avatar

    Cool kata. It would be nice to start people off with the object for the original recipe already there in the initial solution, just so they don't have to type it out themselves. Apart from that it's pretty clear. More test cases and randomly generated ones are always good.

  • Custom User Avatar

    Approved, cheers.

  • Loading more items...