Symmetric Difference Free Code Camp Advanced Algorithm Scripting

preview_player
Показать описание
Symmetric Difference Free Code Camp Advanced Algorithm Scripting
Support our Community:
-Zero to Developer Course in Weeks

Tutoring, Mentoring and Course Walkthroughs available:

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"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Great tutorial, I was totally stuck and gave this watch and then was able to go back without looking and completed the challenge in about 10 minutes. The biggest points I was missing was slicing the arguments into an array and that the callback function could be referenced directly. I think it is clicking now after going back and reviewing the callback part of the Array.prototype.reduce() documentation. Reduce just keeps running the callback function for the current value and accumulating the values through the array and then returns the final accumulated value. I was stuck on a couple other challenges that have a similar concept that wasn't clicking, I think I can go back and conquer those now!

time
Автор

java script is absolute hell, went back and did it in c++

MadpolygonDEV
Автор

I did for loops for both arr1 and arr2 and it worked as well

egg
Автор

great tut Dylan. All I had to was sort() at the end.

JonathanDomah
Автор

I went through the same early struggle with this problem as you did, as there are nuances in the challenge that I had not accounted for. This was definitely a challenging one that I was glad was over. I was able to figure it out on my own but thought I would see if you had a solution for this one and if it was much different than my own. As predicted it is a bit shorter than mine, but the method was pretty much the same.

ThePolaris
Автор

Me: *laughs at him for misspelling "indexOf"*
Also me: *types "arr" instead of "arr1"*

Lightning_Wolf
Автор

Hi, , Thanks a lot.. that is 'so far' the shortest way for me to do it.
I have a question though..
Why do we have to creat the uniqueArray inside the helper function scope ? and when creating the uniqueArray in the parent sym function it doesn't give the desired return?
Please explain with live demo if possible..
I highly appreciate your help.

sherifkhattab
Автор

On line 4, if I use "args" instead of "arguments" it still works. Is there a difference?

dijitalness
Автор

I dont understand how your code (or any other solution to this problem for that matter) should pass the third test case. 5 is in all arguments, so why does it expect it in the solution?

botsant