DSC-Banasthali-Vidyapith / Code-Crossroad

This project contains the carefully compiled Data Structures & Algorithm questions asked by the companies that visit Banasthali Vidyapith on-campus.
MIT License
55 stars 78 forks source link

Intersection of Two Linked Lists #85

Closed SmritiOjha23 closed 2 years ago

SmritiOjha23 commented 3 years ago

AIM: Given the heads of two singly linked lists head A and head B, return the node at which the two lists intersect. If the two linked lists have no intersection at all, return null.

Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,6,1,8,4,5], Output: Intersected at '8'

DETAILS: I would like to provide a JAVA solution to this problem. Please assign this issue to me. @Vanshikagarg17

Vanshikagarg17 commented 3 years ago

You can start working on this issue. All the best!