Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
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.