sir
why we use pointer array here
Doubt in undirected graph cycle detection
@Royal_Yashasvi hey ,graph representation me hmne array of pointers lia kyunki har element us array ka node represent krrha hai and us node pr ek pointer hai jo another array ko point krrha hai jo ki neigbours array hai jisme sare neighbours hai us node ke ,also baki is tree me pointer se array li hai kyunki hm dynamic memory allocate krrhe hai chahe to ap use normally bhi le skte hai.
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.