
Substring with integer value ‘0’is not considered as special and check only for integers up to length ‘9’as beyond ‘9’integer can’t hold values.
For the string ‘1242’ we return ‘True’ as for substring:
‘12’ we can be defined as the product of two consecutive integers i.e ‘3’ and ‘4’.
‘2’ we can be defined as the product of two consecutive integers i.e ‘1’ and ‘2’.
‘42’ can be defined as the product of two consecutive integers i.e ‘6’ and ‘7’.
If the string passes the required condition we have to return ‘True’ else we have to return ‘False’.
The first line of input contains a ‘T’ number of test cases.
In the second line, the string 'STR’ denoting the given string.
For each test case, print ‘True’ if any such substring exists else return ‘False’.
You are not required to print anything explicitly. It has already been taken care of. Just implement the function.
1 <= T <= 10
1 <= | STR | <= 30
Where |STR| represents the length of the string 'STR'.
Time Limit: 1 sec
Pair Product Div by K
Pair Product Div by K
Merge Two Sorted Arrays Without Extra Space
Merge Two Sorted Arrays Without Extra Space
Co-Prime
First Digit One
Special Digit Numbers