+ 1
Digit before maximal digit
please help me to find second maximal digit in array
7 Antworten
+ 3
go with quick or merge or shell or even heap short...
if data is bigger...
they have their own importance upon specific problems too...
+ 2
thanks i will try
+ 1
sort it in desending order....
array[1] is your ans
+ 1
int arr[]= {4,5,3,2,8}
+ 1
@jan
u need to sort anyway to find the max...
there are over 40 types of sorting algo...
if data is big so is complexity..thats normal
without sorting u cant proceed...
+ 1
in python...the min() max() function use 'quick sort' behind the bars
0
not so big ...for examplee 5 elements