AlgoMaster Logo

Intersection of Two Linked Lists

listA=[4, 1],listB=[5, 6, 1],intersection=[8, 4, 5]
0 / 31
41561845headAheadB
algomaster.io
Step:List A: 4→1→8→4→5, List B: 5→6→1→8→4→5