Skip to content

Conversation

@bazinga25
Copy link

#19

Copy link
Owner

@Jasmeet1709 Jasmeet1709 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can optimize the code by comparing the tail of both linked list as if there is an intersection then both linked list will have a common tail. So that if there is no intersection we can come to know early and return -1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants