Check if Two String Arrays are Equivalent
Easy
Strings
Array
String
Return true if concatenation of word1[] equals concatenation of word2[].
Constraints
1 ≤ len ≤ 10^3
Examples
Example 1:
Input: ab c
abc
Output: true
Example 2:
Input: a cb
ab c
Output: true
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console