Ad
  • Custom User Avatar

    The C++ solutions do not seem to behave as described in the instructions, or the instructions are too vague.
    Output for "1234567891011" prints all lines except the one starting with "0" and the last line "1". Why does this test leave off the last digit when the example tests do not describe this behavior?

    Here is the Output for the test case that I'm referring to:

    Expected: equal to "
    1234567891011
    234567891011
    34567891011
    4567891011
    567891011
    67891011
    7891011
    891011
    91011
    1011
    11"
    Actual: "
    1234567891011
    234567891011
    34567891011
    4567891011
    567891011
    67891011
    7891011
    891011
    91011
    1011
    11
    1"

    edit: I thought it would keep the formatting on the example output :/ sorry

  • Custom User Avatar

    you don't have to do anything other than provide the regex

  • Custom User Avatar

    Thank you, I think I get what I need to do now. I need to figure out a regular expression using the regex metacharacters that will return True for a valid password

  • Custom User Avatar

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

  • Custom User Avatar

    This is the initial code for Python:

    regex=""
    

    You only write the regular expresion between the quotes, nothing more.

  • Custom User Avatar

    This is my first experience with regular expressions, and I don't understand this kata. I have seen some comments stating that you must simply assign a regular expression to the regex = "" that the kata begins with in the console. But when I fill it out with something like regex = re.search('aeiou', string), I don't know what I'm supposed to pass as the string value. Can someone please help me with the syntax here?

    edit: I'm solving this kata in Python