Ad
  • Default User Avatar

    This is my result based on your function:
    triple_double( 24352999999,3299)
    True

    However, according to the question, they only want "999" to match "99". For your answer, this example "continually number: 999999" can be regarded as a correct answer, which 999999 matchs 99.

  • Custom User Avatar

    What do you mean by 'continually numbers' ? Can you give me a test case where the solution fails ?

  • Default User Avatar

    I am really interested in the regex, and this is a smart logic. However, if the "num1" is any number which has continually numers, such as 2354999999, the '(\d)(\1){3}' will match any number 24352999999. Apparently, this is not a correct answer for this problem, but good for kata.