LeetCode: Check If Two String Arrays are Equivalent
Written by Stephanie Segura | March 26, 2021
This week’s algorithm was another “Easy” one for most, but always a learning experience for me! I refreshed my memory about .join() and the beautiful things it can do!
Please click the link below to view the Problem Statement
Check If Two String Arrays are Equivalent - LeetCode
Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise…
My initial solution was the following:
However, upon discussing it with my study group, we were able to find a more optimal one line solution.
Thank you so much for stopping by! Stay tuned for more Algorithm Content!