black_friday/Assets/Scripts/PriorityQueue.cs
/// <summary>
/// Swaps two elements in an array based collection using their indicies
/// </summary>
/// <param name="i1">The index of the first item to swap</param>
/// <param name="i2">The index of the second item to swap</param>
Swaps two elements in an array based collection using their indicies
Swaps two elements in an array based collection using their indicies
private void SwapFromIndices(int i1, int i2)
        {
            T temp = innerHeap[i1];
            innerHeap[i1] = innerHeap[i2];
            innerHeap[i2] = temp;
        }
private void SwapFromIndices ( int i1 , int i2 ) { T temp = innerHeap [ i1 ] ; innerHeap [ i1 ] = innerHeap [ i2 ] ; innerHeap [ i2 ] = temp ; }
Swaps two elements in an array based collection using their indicies
Swaps two elements in an array based collection using their indicies
i1
int
The index of the first item to swap
The index of the first item to swap
i2
int
The index of the second item to swap
The index of the second item to swap