easy +10 pts

Concatenate two linked lists

Append the second list's nodes after the first and return a new list.

Implement `concat_lists(a: list, b: list) -> list` returning `a` followed by `b` in a new list.

Constraints

0 ≤ list lengths ≤ 10_000 unless noted.

Example

>>> concat_lists(...)
# see tests
10 points ~12 min

Recent Submissions

No submissions yet — hit Run Tests to try!

Hints

Work on paper with a tiny list first.
Match the function signature exactly.
Python 3
All tests passed!
Test Results
Press Ctrl+Enter or click Run Tests to execute your code.