public class Solution {
public int ArrayPairSum(int[] nums) {
var list = nums.OrderBy(x => x).ToList();
var sum = ;
for (int i = ; i < list.Count; i += )
{
sum += list[i];
}
return sum;
}
}
https://leetcode.com/problems/array-partition-i/#/description