@ankur,saurabh,soumya......

ya ankur i forget to remove range from dare also no need to find
range  for this..\

put size-1 intead of range so that malloc will alocate the memory to
all  elements in array ..no hope its fine...


what i did is that
i took counter array  thta cvontains the  no of times particular
elements  comes
then i have sort d array in reverse  order...&  prints accoding to
count array..thats it... and the last line  of actual question says..

"""..in case of a tie  print the number which occurred first ""..i
don't think d way i hav solved dis......

still please let me no..if m wrong..

Regards
Shashank Mani Narayan " Don't b evil U can earn while u Learn"
Computer Science & enginerring
BIrla Institute of Technology,Mesra
Cell 9166674831

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

Reply via email to