1768. Merge Strings Alternately
Description
**Input:** word1 = "abc", word2 = "pqr"
**Output:** "apbqcr"
**Explanation:** The merged string will be merged as so:
word1: a b c
word2: p q r
merged: a p b q c r
**Input:** word1 = "ab", word2 = "pqrs"
**Output:** "apbqrs"
**Explanation:** Notice that as word2 is longer, "rs" is appended to the end.
word1: a b
word2: p q r s
merged: a p b q r sac
Previous1767. Find the Subtasks That Did Not ExecuteNext1769. Minimum Number of Operations to Move All Balls to Each Box
Last updated