J
Jaspreet
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.
Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.
However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.
Thanks and have an enjoyable weekend.
getting the second highes marks in a class. I was able to do that using
subqueries.
Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.
However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.
Thanks and have an enjoyable weekend.