The solution that I have for the Friendly Date Ranges algorithm produces the correct output for all of the tests. However, makeFriendlyDates([“2016-12-01”, “2017-02-03”])
and makeFriendlyDates([“2016-12-01”, “2018-02-03”])
tell me that I failed their tests despite having the correct output. Here is a link to the Pastebin with my solution:
[SPOILER ALERT]