Timeline for Free Code Camp - Pairwise
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 10, 2016 at 12:44 | comment | added | vladzam |
In my solution, newArr is a deep copy of the arr initially passed to the pairwise function. Thus, when the two iterator variables (i & j ) have the same value, while iterating through different copies of the same object, they would actually add up the exact same number of the array, which is not a valid case for the aforementioned scenario.
|
|
May 9, 2016 at 14:57 | comment | added | Antonio Pavicevac-Ortiz |
Hi Vlad—thanks for solution. I am going through your code to try to learn from it. Could you explain how if(i !== j) the first conditional, is comparing anything but the iterators?
|
|
Jul 31, 2015 at 10:44 | vote | accept | John Behan | ||
Jul 31, 2015 at 9:07 | review | First posts | |||
Jul 31, 2015 at 9:10 | |||||
Jul 31, 2015 at 9:03 | history | answered | vladzam | CC BY-SA 3.0 |