c# - How can i find the n largest integers in an array and returns them in a new array -
how can find n largest integers in array , returns them in new array.
using linq simple:
var newarray = array.orderbydescending(x => x).take(n).toarray();
how can find n largest integers in array , returns them in new array.
using linq simple:
var newarray = array.orderbydescending(x => x).take(n).toarray();
Comments
Post a Comment