https://learn.microsoft.com/ko-kr/dotnet/api/system.linq?view=net-8.0

https://learn.microsoft.com/ko-kr/dotnet/api/system.linq.enumerable?view=net-8.0

[Lazy Evaluation]

LINQ Chain 과정에서 ToList 또는 ToDictionary로 변환할 필요가 없다.


 var key = dict.OrderBy(kv => kv.Value.Item1)
                        .ThenByDescending(kv => kv.Value.Item2)
                        .FirstOrDefault().Key;

dict.Remove(key);