Reader Challenge Calculating Gift Counts for "The Twelve Days of Christmas": Recursion Edition In the second solution to my recent reader challenge, I use recursion to calculate the cumulative number of gifts given for each day of the "12 Days of Christmas."
Reader Challenge Calculating Gift Counts for "The Twelve Days of Christmas": Looping Edition In the first solution to my recent reader challenge, I use a loop to calculate the cumulative number of gifts given for each day of the "12 Days of Christmas."
Reader Challenge Reader Challenge: Write a Formula to Calculate Gift Totals in "The Twelve Days of Christmas" How many total gifts does one's true love deliver by the nth day of Christmas? It's a deceptively tricky problem to solve.