Problem Solving/LeetCode
Today's Challenge
fabichoi
2022. 10. 25. 23:45
https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/
Check If Two String Arrays are Equivalent - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
string join 만 할 줄 알면 1분 내로 풀 수 있는 문제!
class Solution:
def arrayStringsAreEqual(self, word1: List[str], word2: List[str]) -> bool:
return ''.join(word1) == ''.join(word2)
반응형