Showing all posts tagged "Maximum From Array"
Find the minimum and maximum elements from array
Consider an array , we are asked to find the minimum and maximum elements from an array.
The explanation is :
consider two variables min,max and initialize them with INT_MAX,INT_MIN values
while you traverse across the array , if min variable value is ...
Posted on February 12th, 2019