Answer
- A function that takes an array of integers and returns the largest (or
smallest, or average) element of the array.
- A subroutine that takes an array of integers and rearranges the elements
into ascending (or descending) order.
- A function that takes two arrays of integers of the same length
and returns their dot product. (The dot product of two arrays is
computed by performing a pairwise multiplication of corresponding
elements.)
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu