Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Merge Strings Alternately
Bookmark
Input
Example 1
Example 2
Example 3
Custom
word1
=
abc
,
word2
=
pqr
word1
0
1
2
a
b
c
word2
0
1
2
p
q
r
result
algo
master
.
io
Step:
Merge "abc" and "pqr" by alternating characters
0 / 8
Input
Example 1
Example 2
Example 3
Custom
word1
=
abc
,
word2
=
pqr
0 / 8
word1
0
1
2
a
b
c
word2
0
1
2
p
q
r
result
algo
master
.
io
Step:
Merge "abc" and "pqr" by alternating characters