Coding Interview Tutorial 70: Intersection of Two Linked Lists [LeetCode]

preview_player
Показать описание
Learn how to find the intersection of two singly linked lists!

The time complexity is O(m + n), where m is the length of the first list and n is the length of the second list. The space complexity is O(1).

This is a famous programming interview question. Therefore, it is worth learning it for any coding interview.
Рекомендации по теме
Комментарии
Автор

Can u say why in eg1 1 is not an intersection? I m really confused...

yuvrajbansal
Автор

this problem is not necessarily easy, nor its hard
but whats confusing to me is why is the first example starts with 8?why not 1?

VerzapierZyGaming
Автор

I was looking around for RISC-V tutorials and didn't find much. I figured MIPS had to have quite a few and found you.

Would you be interested in making a RISC-V tutorial series? Their are definitely a fair number of students at this point would would find them useful.

thethirdone