1
2
3
4
5
6
7
|
class Solution:
def arrayStringsAreEqual(self, word1: List[str], word2: List[str]) -> bool:
tmp1,tmp2="",""
for i in word1: tmp1+=i
for i in word2: tmp2+=i
if tmp1==tmp2: return True
else: return False
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
Leetcode 344. Reverse String (0) | 2021.08.17 |
---|---|
Leetcode 1832. Check if the Sentence Is Pangram (0) | 2021.08.17 |
Leetcode 709. To Lower Case (0) | 2021.08.17 |
Leetcode 1295. Find Numbers with Even Number of Digits (0) | 2021.08.17 |
Leetcode 905. Sort Array By Parity (0) | 2021.07.23 |
댓글