I have a dictionary like so -
public static Dictionary<int, List<int>> pegMap = new Dictionary<int, List<int>>();
Now I have populated the dictionary like say -
Key: 1 => Value: [3,2]
Key: 2 => Value: []
Key: 3 => Value: [6,7]
Now I want to find the key which has the highest value in the list.
Like in this case the the lambda should return 3
which denotes the key-value pair where key is 3
because the number 7 is present in the list in the dictionary where key happens to be 3
.