our data is bare number array, looks like:
[
1,
2,
3,
4
]
the length of array maybe 100000 long. But most time, we need only get top 20000.
So, is there some way to get top nth element from array?
our data is bare number array, looks like:
[
1,
2,
3,
4
]
the length of array maybe 100000 long. But most time, we need only get top 20000.
So, is there some way to get top nth element from array?