Find Maximum and Minimum Value in Array - Java Code

preview_player
Показать описание
Write a java program to find maximum and minimum value in array. In this tutorial, We traverse an array using for loop to find maximum and minimum value of an array in O(n) time complexity.
Рекомендации по теме
Комментарии
Автор

Really very very helpful and very simple. I understood this perfectly. Keep this up

saileshramesh
Автор

So, i was trying to build a code, but it requires maximum value and which number of array is maximum as well, like the 3rd member of array is maximum, after this tutorial i can calculate maximum value, but how to print which member has the maximum value, like 7th or 8th, can you help me with this issue?

modimodi
Автор

i think these two programs min and maximum elements in arrays, smallest and largest elements in arrays are similar right ???

bhanupriyatham
Автор

Simple & great explanation sir compared to others...

saran.r
Автор

Amazing sir 😀 really appreciate your efforts 🙏

pglights
Автор

Your explanation is the best . thanks
from yemen

balighghaleb
Автор

Excellent explanation, Thank You Sir.

arjundhatbale
Автор

it shows exception in thread error when we run this code in eclipse .... :( .... can anyone help ?

kunalpatil
Автор

If min value is exists what will happens

modupallimadan
Автор

what if min or max were the first index?

mostafamarwanmostafa
Автор

wt if array do not contain negative num

shivamsemwal