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

How to migrate an Amazon Linux 2 AMI to OCI

Continuous Integration(CI)

Steel Mountain | writeup

Do developers dream of self-documenting code?

SubQuery Hero Course — Summary

Arduino with Python

Refrigerator Repair Services

30-days Leetcode challenge: My key takeaways

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

Algorithms: BF/DF Search, Max Area Of Island

114. Flatten Binary Tree to Linked List 🚀

Leetcode 34: Find First and Last Position of Element in Sorted Array

Construct a binary tree from given multi-dimensional array