AlgoMaster Logo

Greatest Common Divisor of Strings

str1=ABCABC,str2=ABC
0 / 6
str1ABCABCstr2ABCA divisor string must tile both str1 and str2
algomaster.io
Step:Start: find the GCD string of "ABCABC" and "ABC"