Skip to content

Leetcode intersection of two linked lists#23

Open
Igneaalis wants to merge 12 commits intomasterfrom
LEETCODE-intersection-of-two-linked-lists
Open

Leetcode intersection of two linked lists#23
Igneaalis wants to merge 12 commits intomasterfrom
LEETCODE-intersection-of-two-linked-lists

Conversation

@Igneaalis
Copy link
Copy Markdown
Owner

Added LEETCODE "intersection-of-two-linked-lists" solution.

@Igneaalis Igneaalis requested a review from Vivelapaix June 4, 2020 22:12
linked-list.md Outdated
if not headA or not headB:
return None
curA, curB = headA, headB
flagA, flagB = False, False
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ты не прочувствовал решение. Объясни мне, почему эти две переменные на самом деле не нужны

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@Vivelapaix ну да, в принципе можно и с двумя указателями сделать...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Вот и удали лишнее

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

А объяснение-то где?

@Igneaalis
Copy link
Copy Markdown
Owner Author

Igneaalis commented Jun 5, 2020

@Vivelapaix Вот решение с двумя указателями.

@Igneaalis Igneaalis added the review Review requested label Jun 5, 2020
@Igneaalis Igneaalis requested a review from Vivelapaix June 5, 2020 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Review requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants