Hash table nodes

sir if the the value was not generic in the node ,then there is no need to declare it as node*n??
so can we just declare it just like node *n=new node()
??
in the case if the node class was not generic

Yes you can do that, if and only if node class is not generic

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.