My code modifies the heap for every new element. It removes all the element and insert all the unique elements. I want a better approach so that i can save the complexity
and please help me to find the complexity of the code i used
My code modifies the heap for every new element. It removes all the element and insert all the unique elements. I want a better approach so that i can save the complexity
and please help me to find the complexity of the code i used