Skip to main content

1662. Check If Two String Arrays are Equivalent

Python

class Solution:
def arrayStringsAreEqual(self, word1: List[str], word2: List[str]) -> bool:
return ''.join(word1) == ''.join(word2)