Leetcode 1781 Solution

This article provides solution to leetcode question 1781 (check-if-two-string-arrays-are-equivalent)

https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent

Solution

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