Code challenges now form a bigger part of my daily routine. Below is a snippet of lessons learned from my morning session of code challenges with Edabit. The first task requires one to return the minimum and maximum value of an array. The second task requires one to use the values (angles) in an array to find a missing angle.
🙂 Math.max(...arr) and Math.min(...arr) can be used to get the minimum and minimum values from an array.
🙂 If you ever find yourself needing to find a missing value (or angle) in an array, you can sum up the values and subtract them from the total value that the array should be equivalent to if not for the missing value.
Below is a link to a video which I recorded while taking the coding challenges: Coding Challenge Recording