in C#
Add a public method to Priority Queue class that is calledCountChildren. It is passed a priority value andreturns the number of children nodes that are in the sub-tree thathas a root equal to the priority value passed to themethod. It should call the following private method and pass thepriority value and the heap’s root position.
Add a recursive private method, called CountChildren,that accepts a priority value and a treeposition. Is must return the number of nodes within asub-tree where the sub-tree’s root node has a Value that equals thepriority value passed into the method. Do not include theparent node in
PayPal Gateway not configured
PayPal Gateway not configured