What to use when we need PriorityQueue or Floor/Ciel operations on SortedSet in C#

This is specifically Question for folks who take coding interviews in C#.

I found that C# language is slightly limited for taking coding interviews as in some cases, it does not support certain collections or at other times certain operations on collections.
For instance, there is no PriorityQueue/Heap class present which is needed for many questions.

Also SortedSet (Treeset in Java) does not support, Floor/Ciel operations.

Any suggestions from fellow C# coders on how they get around the above problems?

PS: Deque is also not supported but fortunately, LinkedList class more than supports anything we need from a Deque, so this is not much of a problem.

Comments (0)