LeetCode: 1768-Merge Strings Alternately 解題紀錄
Last Updated on 2023-04-18 by Clay
題目
You are given two strings word1 and word2. Merge the strings by adding letters in alternating order, starting with word1. If a string is longer than the other, append the additional letters onto the end of the merged string.