LeetCode --- 1662. Check If Two String Arrays are Equivalent 解题报告
Posted 杨鑫newlfe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LeetCode --- 1662. Check If Two String Arrays are Equivalent 解题报告相关的知识,希望对你有一定的参考价值。
Given two string arrays word1
and word2
, return true
if the two arrays represent the same string, and false
otherwise.
A string is represented by an array if the array elements concatenated in order forms the string.
Example 1:
Input: word1 = ["ab", "c"], word2 = ["a", "bc"] Output: true Explanation: word1 represents string "ab" + "c" -> "abc" word2 represents string "a" + "bc" -> "abc" The strings are the same, so return true.
Example 2:
Input: word1 = ["a", "cb"], word2 = ["ab", "c"] Output: false
Example 3:
以上是关于LeetCode --- 1662. Check If Two String Arrays are Equivalent 解题报告的主要内容,如果未能解决你的问题,请参考以下文章
C#刷Leetcode 1662. 检查两个字符串数组是否相等 IEnumerator
C#刷Leetcode 1662. 检查两个字符串数组是否相等 IEnumerator