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 hints

Topics

Also asked at 11 companies


More Google Questions

View all Google questions