Exercises/#28 Intersection of Two Linked Lists
#28

Intersection of Two Linked Lists

EasyπŸ”— Linked Lists
60 XP

Problem

Given the heads of two singly linked lists, return the node where the two lists intersect. Return null if no intersection.

Examples

listA: a1β†’a2β†’c1β†’c2β†’c3
listB: b1β†’b2β†’b3β†’c1β†’c2β†’c3
Output: c1 (intersection node)
linked-listtwo-pointer
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

28 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features