How would you obtain the min and max of a two-dimensional array using LINQ? And to be clear, I mean the min/max of the all items in the array (not the min/max of a particular di
You could implement a List
and find the min and max in a >
foreach
loop, and store it to a List
. Then you can easily find the Min()
and Max()
from that list of all the values in a single-dimensional list.
That is the first thing that comes to mind, I am curious of this myself and am gonna see if google can grab a more clean cut approach.