Question: 1.Write an iterative function for sum-of-factorials-of-elements.For example (sum-of-factorials-of-elements (1 3)) should return (+ (factorial 1) (factorial 3)) => 7 2.Compare the recursive, tail recursive and
1.Write an iterative function for sum-of-factorials-of-elements.For example (sum-of-factorials-of-elements (1 3)) should return (+ (factorial 1) (factorial 3)) => 7
2.Compare the recursive, tail recursive and iterative versions of the sum-of-squares function based on the requirement for intermediate storage and time for very large numbers (e.g. 30000000)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
