get a List of Max values across a list of lists
问题 I have a List<List<double>> and I need to find a List MyList where MyList[0], for instance, is the Max of all the first elements of the List. Example, just to be clear: First list contains (3,5,1), second contains (5,1,8), third contains (3,3,3), fourt contains (2,0,4). I need to find a list with (5, 5, 8). I do NOT need the list (5,8,3,4). Of course i know how to do it with nested for cycles. I'd like to know if there's a linq way and believe me i don't know where to start from. 回答1: Try