Ad
  • Default User Avatar

    The kata is not flawed; thousands of people have solved it.

    The idea is simply that the six functions listed are available to you to call upon.

    Instead, your function returns strings of the function names, where nowhere in the description did it ask you to return anything.

    Take note that the eror message says:
    should call all 6 functions followed by 0 should equal 6

  • Custom User Avatar

    You can approach it in different ways, but the constraints are clear: determine the most probable language using maximum n * 7 tries.

    I updated the sample tests in python to stop when the maximum number of tries is reached. Haskell and JS should be reviewed by the translators.

    Cheers

  • Custom User Avatar

    From the description:

    You will be given [...] n weeks. [...] You can try to get a response once a day, thus you have n * 7 tries in total

    Your code includes a nested loop, thus asking for response n * 7 * 5 times in total, which is greater than the allowed n * 7.

    ps: next time please mark your comment as a question, as this is not a kata issue (1000+ people solved the kata and no sign of such problem in the comments).

  • Custom User Avatar

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

  • Custom User Avatar

    Not a kata suggestion

  • Custom User Avatar

    The difference is the index flag, check the description of the arguments: it adds a column with 1-based indices to every row with data (except for the header row itself)