educative.io

Is there a C# Heap or PriorityQueue Implementation that takes Generic Types so that I can make a MinHeap of ListNodes?

I’m currently specializing in C# and will only be using C# during coding interviews.

For questions requiring Min or Max Heap, I already have a working C# Heap implementation, but it is only useful for heaping integer elements.

In this question, I have to create a MinHeap for ListNodes. That is not possible with my current C# Heap implementation.

Do you have a Heap or PriorityQueue implementation that can take integers, ListNodes, or any generic type?

I am worried that I won’t be able to answer these types of questions during an interview if my language of choice is C#.

Thanks!