Hi hello everyone
Well i manged to use a build in function i.e array.sort(arrayname) to arrange it in ascending order well coming to my array list ex : {5,6,7,9,7,9,3,9}
In the above example there are multiple high & 2nd high numbers right .. if the list is unique its a no brainer :)
so how to get 2nd highest number from above example & any permament solution for such cases i.e wen we have duplicate values
TY
Loading

VulpesPosted Jul 15, 2013, 2:11 PM
VulpesPosted Jul 15, 2013, 2:40 PM
SUNIL GUTTAPosted Jul 15, 2013, 2:26 PM
Well sorry to bother you again & again
well i have tried like an extension to above code i.e {5,6,6,7,9,7,9,3,9}
What if when we need to find 3rd highest number ??? The above mentioned code should be changed in which way
TY