#1768
Merge Strings Alternately
newbie · 145 · lc easy +13 · premium · verified · 82.1% accepted · 4,889 likes · top 93%
Description
You are given two strings word1 and word2. Merge them by alternating characters starting with word1. Once the shorter is exhausted, append any remaining characters from the longer string. Return the merged result.
Code
1
2
3