in C#
Add a recursive method to our AVL class that accepts another AVLTree and returns true if the two trees are equal. For this codingassignment, two trees are equal is the entire structure includingthe values of each node are the same. Test your new method using atleast three test cases.
GIVEN CODE:
public class OurPriorityQueue<TPriority, TValue> whereTPriority : IComparable<TPriority>
{
// ——————————————————-
private class OurEntry<TPriority, TValue>
{
public TValue Value { get; set; }
public TPriority Priority { get; set; }
public OurEntry(TPriority aPriority = default(TPriority), TValueaValue = default(TValue))
{
Priority = aPriority;
Value = aValue;
}
public override string ToString()
{
return Priority + “:” + Value;
}
}
// ——————————————————-
private OurEntry<TPriority, TValue>[] mTable; // initiallyeach slot is
PayPal Gateway not configured
PayPal Gateway not configured