Doubt regarding space and heap

how the heap will decide who is min by bcoz its the type of node and for every char we are storing a string in the hash map it will also take too much space

Hey @deepakjumani09
I could not understand your query
Please better frame it in points
Thanks