Tap here to switch tabs
Problem
Submissions

Problem: Check If Two String Arrays are Equivalent

med
30 min
Try to solve the Check If Two String Arrays are Equivalent problem.

Statement

Given two string arrays word1 and word2, determine if the two arrays represent the same string.

An array of strings represents a single string formed by concatenating all of its elements in order. Return true if the concatenated strings from word1 and word2 are equal, and false otherwise.

Constraints:

  • 1≤1 \leq word1.length, word2.length ≤103\leq 10^3

  • 1≤1 \leq word1[i].length, word2[i].length ≤103\leq 10^3

  • 1≤1 \leq sum(word1[i].length), sum(word2[i].length) ≤103\leq 10^3

  • word1[i] and word2[i] consist of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Check If Two String Arrays are Equivalent

med
30 min
Try to solve the Check If Two String Arrays are Equivalent problem.

Statement

Given two string arrays word1 and word2, determine if the two arrays represent the same string.

An array of strings represents a single string formed by concatenating all of its elements in order. Return true if the concatenated strings from word1 and word2 are equal, and false otherwise.

Constraints:

  • 1≤1 \leq word1.length, word2.length ≤103\leq 10^3

  • 1≤1 \leq word1[i].length, word2[i].length ≤103\leq 10^3

  • 1≤1 \leq sum(word1[i].length), sum(word2[i].length) ≤103\leq 10^3

  • word1[i] and word2[i] consist of lowercase English letters.