Are Similar? | CodeFights Intro Algorithm JavaScript Solution and Breakdown

Are Similar? | CodeFights Intro Algorithm JavaScript Solution and Breakdown



Are Similar? | CodeFights Intro Algorithm JavaScript Solution and Breakdown
Support our Community:
-Donate:
-Patreon:
-Code, Tech and Caffeine Facebook Group:
-Discord:
– Looking for a a Bootcamp check out DevMountain’s program where housing is included with the tuition:

Tutoring, Mentoring and Course Walkthroughs available:

Thank you to my Patreon Supporters Below:
-Check out youtube.com/user/cardinalslinkyband

Support me and visit my store at:

Internship, Part-Time, & Full time work for college students and recent grads:

Fan funding goes towards buying the equipment necessary to deliver 4k videos, 4k webcam, and a high quality microphone better audio. Any support is very appreciated!

My channel is here for aspiring programmers to learn easier and help debug any issues from the many great free resources available on the web.

Check out my other videos going over HTML, CSS, Ruby, Ruby on Rails, Java, JavaScript, Python, PHP, SQL, Command Line, BootStrap, jQuery, and WordPress from CodeCademy, CodeCombat, FreeCodecamp and more!

-~-~~-~~~-~~-~-
Please watch: “How I Became a Developer | My Developer Journey of the Last 3 Years | Ask a Dev”

-~-~~-~~~-~~-~-

Nguồn: https://kythuatmarketingonline.com/

Xem thêm bài viết: https://kythuatmarketingonline.com/category/giai-tri

6 thoughts on “Are Similar? | CodeFights Intro Algorithm JavaScript Solution and Breakdown

  1. Yeah this was a tough one. I initially just sorted the arrays then join them into a string and return a === b But that on test cases where the contents were the same but required two swaps in one or both to be equal.

  2. Well done, I am kicking myself for not getting earlier. It is so simple. The last line of code can also be:
    return c.reverse().toString() === d.toString() ? true : false;

Leave a Reply

Your email address will not be published. Required fields are marked *