i am getting error in this code
Intersection point two linked lists
This wont work. Copy paste your code in coding blocks ide then save it and share the url here.
I think you have send a wrong code because it is completely different from the question. Kindly check it once again.
You have not written any code related to intersection of linked list. Kindly tell me which part of your code is giving error because this code is working fine and printing both the linked list.
this code is correct please check it
sorry for inconvenience
please reply if you have checked my code
See that in your code you are just checking the value of linked list one and two from starting and one by one moving one step forward. But this makes your code give wrong answer because for example for this ques you have to traverse the longer linked list by difference of both the linked list so that there are equal number of nodes left in both the linked lists.
Here is the corrected code