Hello ,
I have a 2D array. It has two columns. I have to find the top 3 elements of the second column and return the corresponding elements of the first column.
for example say the 2 D array is as follows:
1 0.33
2 0.4
3 0.6
4 0.2
5 0.32
6 0.54
7 0.34
8 0.8
9 0.52
10 0.1
in this the top 3 elements in column 2 are 0.8 , 0.6 and 0.54.
The output should return 8, 3 and 6 in sequence or store it in another array in sequence.
Thanks in advance
Rajhans