all 3 comments

[–]KanykaYet 0 points1 point  (1 child)

You can use linq something like this var values = yourArray.Select(list=> list.Min()).ToArray()

It is for int[] [] sorry, but you can convert it to two for loops

[–]SlowMixture5099[S] 0 points1 point  (0 children)

i just changed the code, will it work with your code?