I think in line number 27 t should be <T,T> instead of <t,int> …please confirm
Doubts in lecture
Yes it should be <T,T> . Because parent is a hashmap which will take T as key and store parent of that key which is also of the type T .
thank you for clarifying it
Hey Gaurav, when your doubts are resolved… please mark them as resolved in your course’s Ask Doubt section.