Example #1
0
    public void RunHeapTest()
    {
        EHPriorityQueue <int> MaxHeap = new EHPriorityQueue <int>();


        for (int i = 0; i < 1000; ++i)
        {
            MaxHeap.Push(Random.Range(0, 10000));
        }

        int j = 0;

        while (!MaxHeap.IsEmpty())
        {
            print((++j).ToString() + " " + MaxHeap.Pop());
        }
    }