please make necessary changes
Please tell how to rectify this code
There were some minor errors such as in line 52 and 55, you weren’t taking n1 and n2 as input respectively and in lines 70 & 91 you need to compare temp1->data == temp2->data and not temp1==temp2. After making these changes your code works just fine.
Code : https://ide.codingblocks.com/s/194910
Hope it Helps.