Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Greatest Common Divisor of Strings
Bookmark
Input
Standard
Longer GCD
No GCD
Single Char
Equal
Custom
str1
=
ABCABC
,
str2
=
ABC
str1:
0
A
1
B
2
C
3
A
4
B
5
C
str2:
0
A
1
B
2
C
algo
master
.
io
Step:
Start: Find GCD of strings "ABCABC" and "ABC"
0 / 6
Input
Standard
Longer GCD
No GCD
Single Char
Equal
Custom
str1
=
ABCABC
,
str2
=
ABC
0 / 6
str1:
0
A
1
B
2
C
3
A
4
B
5
C
str2:
0
A
1
B
2
C
algo
master
.
io
Step:
Start: Find GCD of strings "ABCABC" and "ABC"