Question: Publicis Sapient | SDE | 15 December
0
Entering edit mode

Given 2 strings 's' and 't', check if 't' divides 's' :

If it divides, return length of smallest substring that divides both 's' and 't'


"abxabx" divides "abxabxabxabx", but doesn't divides "abxabxabx"

Length =3

ADD COMMENTlink 4.7 years ago mod2 870

Login before adding your answer.

Similar Posts
Loading Similar Posts