I don't understand
The orig.append(other) method will create a list which is a concatenation of all nodes in orig and all nodes in other and which shares as many nodes as possible with orig and other (while still being a singly-linked list).
What is concatenation of all nodes?
All the values added together?
orig.append(other)
:orig
andother
have typeList
, the result is aList
that consists of all values oforig
followed by all values ofother
.Look at the examples:
Does that help?
I don't understand
The orig.append(other) method will create a list which is a concatenation of all nodes in orig and all nodes in other and which shares as many nodes as possible with orig and other (while still being a singly-linked list).
What is concatenation of all nodes?
All the values added together?
The solution doesn't work when being tested, but works when submitted that's not good