Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Well, this is a coding site, where you are supposed to learn how to deal with real-life situations. Validating an input seems to me a very basic concept. Furthermore, this is mentioned in the description and also tested (at least partially) in the example tests. Do you need an additional warning? Please:

    WARNING! THIS KATA REQUIRES INPUT VALIDATION!

    :-)

    Well, probably it should be rated at 4/5 kyu... however, I can't change that.

  • Default User Avatar

    I agree, the way this requires the programmer to check the input is very complicated.

  • Custom User Avatar

    Would you reconsider your rating? :-)

  • Custom User Avatar

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

  • Custom User Avatar

    What I'm testing is if you can find the correct algorithm to efficiently crack a password. And yes, you cleverly pointed out the way I'm trying to avoid timeouts. There is no "guesswork" included: if you try to crack a password with brute force, you go through all possible combinations, starting from an empty string...

  • Custom User Avatar

    The description is rather clear about error handling:

    If the provided input and/or key is incorrect, empty or missing, return 'Incorrect key or input!'

    However, following your suggestion I included a number of corner cases in the example tests, in order to know what's coming. Also, the input, key and the expected results are now displayed in the random tests.

    Cheers

  • Custom User Avatar

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

  • Custom User Avatar

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