Accessing Min/Max key from SortedDictionary in O(1)

212 Views Asked by At

I have a (large) SortedDictionary<TKey,TValue> and I need to access the min/max keys efficiently, presumably in O(1) time since the keys are "sorted".

How do I do this?

0

There are 0 best solutions below