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.

  1. StringArray: an array containing string type values
  2. IntArray: an array containing int type values

Try to solve the challenge below. Good Luck!

Get hands-on with 1200+ tech skills courses.