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 #130

Closed Vanshikagarg17 closed 2 years ago

Vanshikagarg17 commented 2 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'

Ridhikalra commented 2 years ago

@Vanshikagarg17 Please assign this task to me. I can do it in C++ or python.

Ananyaas commented 2 years ago

@Ridhikalra you can work on this issue. All the best!