Merge Strings Alternately at Google
Easy82.1% acceptance
This problem has 75.0% frequency at Google.
Problem Description
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. Return _the merged string._
Read full problem and hintsTopics
Also asked at 11 companies
More Google Questions
Longest Substring Without Repeating CharactersMediumLongest Common PrefixEasyTrapping Rain WaterHardLongest Palindromic SubstringMedium3SumMedium
View all Google questions