Daily Coding Day Two
Round two of daily coding challenges. This one was marked as hard in the email, and I am sure that there is a way to do this by extending reduce or perhaps filter to encompass the for loop, but I am interested more in getting a solution to these exercises rather than the solution. Day two here it is:
1 | // Given an array of integers, return a new array such that each element |