Ad
  • Default User Avatar

    Okay, I fixed the problem in the description, but it shouldn't change your solution

  • Default User Avatar

    I have now specified that the ID's have only the digits 0-9

  • Default User Avatar

    A URL is valid if all of the following are true

    1.The scheme (every charecter before the first "/") has to equal "https:"

    2.The Id (every charecter after the last "/") has to have a length of five or four

    If the Id is four charecters long at this point you would add a "0" to the begining

    3.The modified Id does not start with "00"

    The scheme is invalid if statement 1. is not true. The ID is invalid if either statement 2. or 3. are false.

  • Default User Avatar

    Okay I have changed the hs/UL.com/4 examples to hs:/UL.com/4. And changed the use of protocol to scheme

  • Default User Avatar

    For this kata 12%32 has five, but all the IDs should only have the numerical digits 0-9 in them

  • Default User Avatar

    I am sorry for any confusion I have caused. If you are talking about outputs when either the ID or protocol is invalid protocol_string = "{whatever the protocol is} is an invalid protocol." Id_string = "{Id} is an invalid store ID.".The returned string should have the protocol_string if the protocol is invalid and the Id isn't. If the ID is invalid but the protocol isn't you should return Id_string. When both are invalid return protocol_string+Id_string. If this is not what you're talking about, I do not quite understand what you are saying.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    I fixed the first two, but do not understand the third, Sorry.

  • Default User Avatar

    How do you know if an Ace is 1 or 11. You didn't tell us which situation causes 1 and which situation causes 11.

  • Default User Avatar

    This is 0.4ms shorter on average.

  • Default User Avatar

    The test cases have an "NameError: name 'Test' is not defined" just turn the Test to test

  • Default User Avatar

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

  • Default User Avatar

    Totally correct.

  • Default User Avatar
  • Loading more items...