Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at all, return null.
Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.
Issue Title
Please enter the title of the issue related to your pull request.
Intersection of Two Linked Lists #1031
Info about the Related Issue
What's the goal of the project?
Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at all, return null.
Input: listA = [4,1,8,4,5], listB = [5,6,1,8,4,5]
Output: Intersected at '8'
Name
Please mention your name.
Sanat Kumar Gupta.
GitHub ID
Please mention your GitHub ID.
@SKG24
Email ID
Please mention your email ID for further communication.
gupta.sanat24@gmail.com
Identify Yourself
Mention in which program you are contributing (e.g., WoB, GSSOC, SSOC, SWOC).
gssoc-ext, hacktoberfest
Closes
Enter the issue number that will be closed through this PR.
Closes: #1031r
Describe the Add-ons or Changes You've Made
Give a clear description of what you have added or modified.
I have added entire code for this issue
Type of Change
Select the type of change:
How Has This Been Tested?
Describe how your changes have been tested.
Used local compiler and nline compiler to test it
Screen.Recording.2024-11-03.at.9.48.29.PM.mov
Checklist
Please confirm the following: