Intersection of Two Linked Lists - LeetCode 160

preview_player
Показать описание
Another easy #leetcode question for ya. For the optimal solution to this question, we get the length of both lists and give the longer list a headstart when traversing. Happy Coding!

PROMO
---------------------------------------------------------------------------------------------------------

TIMESTAMPS
--------------------------------------------------------------------------------------------------------
Intro: 00:00
Illustration: 00:35
Brute Force Solution: 00:53
HashSet Solution: 01:47
Optimal Solution: 03:27
Complexity analysis: 06:43
Code: 06:57

QUESTION LINKS
---------------------------------------------------------------------------------------------------------
Difficulty: Easy

FIND ME HERE
--------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

sorry for the background noise. that's my naughty, cute little nephew :-)

mvee
welcome to shbcf.ru