LeetCode #2 — Adding Two Linked Lists

David Seek
2 min readJun 1, 2020

Find more useful articles at www.davidseek.com

LeetCode’s challenge #2 asks us to sum up two Linked Lists and return one singly Linked List. The given lists are (2 -> 4 -> 3) and (5 -> 6 -> 4), and the expected return list is (7 -> 0 -> 8).

The Brute Force Solution

--

--