You are given a string s consisting of numerical digits.
You perform the following operation repeatedly until the length of s becomes
For each index i from s.length i and the digit at index i + 1 modulo s with this new string.
Return true if the two digits remaining in s are equal, or false otherwise.
Constraints:
s.length
s consists of only digits.
You are given a string s consisting of numerical digits.
You perform the following operation repeatedly until the length of s becomes
For each index i from s.length i and the digit at index i + 1 modulo s with this new string.
Return true if the two digits remaining in s are equal, or false otherwise.
Constraints:
s.length
s consists of only digits.