Leetcode 1781 Solution
This article provides solution to leetcode question 1781 (check-if-two-string-arrays-are-equivalent)
Access this page by simply typing in "lcs 1781" in your browser address bar if you have bunnylol configured.
Leetcode Question Link
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)