← Back

Code Challenge 4.2 - Min and Max Finder


Objective

Your task is to write a program that calculates the minimum and maximum values in a collection. You will implement two separate functions: one to find the minimum value and another to find the maximum value.

Skills to Practice

Challenge Tasks

Python

def find_min(collection):
    # code here

C#

int FindMin(int[] collection)
{
    // code here
}

// -or-

int FindMin(List<int> collection)
{
    // code here
}