I have written my code pls find it out idf the code is corect or not for the present situation
Node intersectionOfTwoLinkedLists(Node l1, Node l2) {
/* Code here */
Node one=l1.head;
Node two=l2.head;
int delta=Math.abs(l1.size-l2.size);
if(one.data<two.data){
for(int i=0;i<delta;i++){
two=two.next;
}
}else{
for(int i=0;i<delta;i++){
one=one.next;
}
while(one.data!=two.data){
one=one.next;
two=two.next;
}
return l1.data;
}
}
}


