Ad
  • Custom User Avatar

    that's why you always make randomized tests

  • Custom User Avatar

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

  • Custom User Avatar

    Poor description! nth pick stands for number of rounds and it also stands for the position of the element you have to return after completing the rounds!

  • Custom User Avatar

    This taught me quite a bit about writing tests. Very clever.

  • Custom User Avatar

    Thanks for letting me know. I just fixed that, and made the random tests be more random. Your solution should fail most of the tests now.

  • Custom User Avatar

    Your random tests are vulnerable to input modification.

  • Custom User Avatar

    I see. I changed nth to nthPick and added a few examples. Does that clear up any confusion?

  • Custom User Avatar

    The thing is that it's not very clear what nth means:

    list: abcde
    
    nth = 5 -> e
    abcdeedcbaabcde...
        ^
    nth = 9 -> b
    abcdeedcbaabcde...
            ^
    

    nth actually means something like above rather than things like "nth round".

  • Custom User Avatar

    Don't snake drafts act the same for larger sets as they do for smaller sets? E.g., abc...xyz, then zyx...cba, then abc...xyz and so on?

    Are the test cases not doing that?

  • Custom User Avatar

    I think you need to update your description on how a snake draft is formed after each round for larger sets.

  • Custom User Avatar

    For this to be any sort of challenge above very-beginner level, it needs a real challenge: something unexpected or weird that the warrior will have to deal with. In its current form, it is far too simple.