Find Smallest and Largest Element in an Array
“Find Smallest and Largest Element in an Array” is an elementary problem of an Array data structure for beginners. Here, we are given an array of size ‘n’ and our task is to find the largest and smallest element of the array. Example (Find smallest and Largest Element in an...