Tuesday, 10 October 2017

JAVA : ALGORITHM : Find Intersection of LinkedList

JAVA : ALGORITHM : Find Intersection of LinkedList

Logic : In Node -> create one another variable "visible", => when you traverse one LinkedList mark that as "visible=true", so that when ever you traverse second LinkedList -> check for "visible=true"



No comments:

Post a Comment