Ad
  • Custom User Avatar

    In scala, the first and third tests in the main attempt seem odd:

    6 7 2 1 9 5 3 4 8
    1 9 8 3 4 2 5 6 7
    8 5 9 7 6 1 4 2 3
    4 2 6 8 5 3 7 9 1
    7 1 3 9 2 4 8 5 6
    9 6 1 5 3 7 2 8 4
    2 8 7 4 1 9 6 3 5
    3 4 5 2 8 6 1 7 9 should be valid

    4 9 8 2 6 1 3 7 5
    7 5 6 3 8 4 2 1 9
    6 4 3 1 5 8 7 9 2
    5 2 1 7 9 3 8 4 6
    9 8 7 4 2 6 5 3 1
    2 1 4 9 3 5 6 8 7
    3 6 5 8 1 7 9 2 4
    8 7 9 6 4 2 1 5 3 should be valid

  • Custom User Avatar

    About 3 - 4 times...? I may have just got lucky though.
    Voile: Thanks!

  • Custom User Avatar

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

  • Custom User Avatar

    Hello,

    thanks for a nice kata! Just a quick comment:
    For python, there's no instruction on what to do with '0'... was that deliberate...?
    Cheers,

  • Custom User Avatar

    Hey @ChristianECooper,

    Thanks for reaching out. I just ran A, B and C though my solution, but only A returns a meaningful sentence.
    So...Not sure how to proceed. I'm guessing that perhaps you misunderstood the instructions? Maybe they were somehow confusing. Any suggestions on how to improve them would be welcome!

  • Custom User Avatar

    Aaah. I see. Sorry, I guess I'd completely misread the instructions. I'd somehow got the impression that each person took a unit time (1), and that the numbers in the array were the 'number of people in a given queue' (instead of the time for each person). I get it now. Thanks for the clarification!

  • Custom User Avatar

    Aaah. I see. Sorry, I guess I'd completely misread the instructions. I'd somehow got the impression that each person took a unit time (1), and that the numbers in the array were the 'number of people in a given queue' (instead of the time for each person). I get it now. Thanks for the clarification!

  • Custom User Avatar

    Ah. Yes. Thanks for that!
    I've added 2 in the tests, and 1 in the example test cases.

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    @zebulan,

    Not at all! I'm glad someone noticed that it was a duplicate before it left "beta" status.
    Also, I'm still fairly new to this so good advice is much appreciated.

  • Custom User Avatar

    Hey, just to follow up: modified it so the initial strings contain numbers that you need to filter out after interleaving.
    I hope this would be considered different enough...
    Is it ok if I mark this as resolved?

  • Custom User Avatar

    Ah. balls. Thank you for pointing it out!
    Hmm... I'll search around to make sure I don't change it to another pre-existing thing. Maybe I'll require that numbers be filtered?
    Thanks again.

  • Custom User Avatar

    Ah, yeah. I was thinking you're supposed to trim any residual spaces off. Maybe I'll specify that in the description. Thx.

  • Custom User Avatar

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

  • Loading more items...