Find the minimum and maximum elements in the array.
Given an array A of size N of integers. Your task is to find the minimum and maximum elements in the array.
GeekForGeek Problem - Link | Click Here
class Compute
{
static Pair getMinMax(long a[], long n)
{
// Handle empty array cas...
perfinsights.hashnode.dev1 min read