Challenge 1: Finding Max in an Array
In this exercise you have to use template type to generalize the method used to find max element in an array.
We'll cover the following...
Problem statement
In the code widget below, two methods both called array_max
are declared. One finds max value for int
type inputs and the other for double
type.
In this exercise, you need to define a Generic Class type method called array_max
that will generalize the method such that it finds ...