what is the need of passing ropes and ropes+n in pq constructor
Join the rope implementation
Hi @kumar_07
This is a basic syntax of constructor of queues. For example :
template< class InputIt > priority_queue( InputIt first, InputIt last )
Here first, last - range of elements to initialise with
We have use it to make the size of heap constant so that it will contain max of n elements.