Question: Write a function sumSquareLast that returns as an integer the sum of squares of the last _ n _ els last elements of the array,

Write a function sumSquareLast that returns as an integer the sum of squares of the last_n_els last elements of the array, assuming last_n_els is appropriately sized.
The function has the following inputs, in this order:
an array of integers
an integer number of elements
an integer
Sample Test Case
\table[[Property,Value],[Input array,{1,3,6,8,-200,31,30}
 Write a function sumSquareLast that returns as an integer the sum

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!