Challenge: Implement Miner Interface
This lesson brings you a challenge to solve.
We'll cover the following
Problem statement
Analogous to the Sorter interface, we developed previously, make a Miner
interface with the necessary operations and a function Min
that takes a parameter, which is a collection of type Miner
. Min
calculates and returns the minimum element in that collection.
Note that the collection can be of two types.
StringArray
: an array containingstring
type valuesIntArray
: an array containingint
type values
Try to solve the challenge below. Good Luck!
Get hands-on with 1200+ tech skills courses.