← Questions

Merge two sorted linked lists

0
GoogleMetaCodingLast asked Jul 2025

Merge two sorted linked lists into one sorted list and return its head, reusing the existing nodes. Do it iteratively with a dummy head, then discuss the recursive version.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding