Given two string arrays word1 and word2, determine if the two arrays represent the same string.
An array of strings represents a single string formed by concatenating all of its elements in order. Return true if the concatenated strings from word1 and word2 are equal, and false otherwise.
Constraints:
word1.length, word2.length
word1[i].length, word2[i].length
sum(word1[i].length), sum(word2[i].length)
word1[i] and word2[i] consist of lowercase English letters.
Given two string arrays word1 and word2, determine if the two arrays represent the same string.
An array of strings represents a single string formed by concatenating all of its elements in order. Return true if the concatenated strings from word1 and word2 are equal, and false otherwise.
Constraints:
word1.length, word2.length
word1[i].length, word2[i].length
sum(word1[i].length), sum(word2[i].length)
word1[i] and word2[i] consist of lowercase English letters.