January 2012
Intermediate to advanced
396 pages
8h 16m
English
Follow the given steps:
PriorityQueue to the project. Change the signature of the class header as follows:public class PriorityQueue<Tkey, TValue> where Tkey : IComparable
PriorityQueue is a SortedList. I want to call it innerDS, add this private variable as follows:private SortedList<Tkey, List<TValue>> innerDS;
public PriorityQueue()
{
innerDS = new SortedList<Tkey, List<TValue>>();
}Main() method of the console app and add the following code:PriorityQueue<int, string> gadgets = new PriorityQueue<int, string>();
Read now
Unlock full access