As you traverse the array, every time an element of the array is
greater than the maximum you have found so far, update the max and
save its index.

Dave

On Jun 21, 9:34 am, sharad <sharad20073...@gmail.com> wrote:
> How will you find the number of occurrence of maximum value in an
> array
> u can traverse only 1 time

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to