Intersection point two linked lists____

please tell me error in my code

Hi Piyush ,
The problem with your code is that in _getIntesectionNode() , inside the while loop , you are comparing the pointers of the two linked lists - current1 and current2 .
These are two seperate linked lists with seperate nodes. Each node is unique and has a different memory location. It just so happens that the ending elements in your lists happen to have the same data. Their pointers are still different.
Instead of comparing pointers current1 and current2 in line no 50. try comparing their data elements i.e. if(current1 -> data == current2 -> data) .

Hit like if you understand.