LeetCode: Check If Two String Arrays are Equivalent

Thank you for visiting this post! Be sure to also take a look at my other work on LinkedIn, Github, and my website.

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!

Problem

Please click the link below to view the Problem Statement

Solution

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.

Conclusion

Thank you so much for stopping by! Stay tuned for more Algorithm Content!

Please checkout my online portfolio and feel free to connect with me on Linkedin!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Type Conversions, Casting & Type Assertions

Searching Splunk: What I Learned from the SANS Holiday Hack Challenge 2021

Monitor your Redis instance on Kubernetes with RedisInsight.

Start Competitive Programming

AuroraFS

Take Full Control of AI Notebook Instance on GCP via Putty

Shared (dynamic) Libraries vs. Static Libraries —Differences in performance.

The Essential Concepts of High Speed Distributed Database — Cassandra

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stephanie Segura

Stephanie Segura

More from Medium

LeetCode Q#387 -First Unique Character in a String

Arrays : Data-structures the Fun way

DSA #4 Binary Tree and Binary Search Tree

114. Flatten Binary Tree to Linked List 🚀