Example 1
Example 2
Example 3

Example 4

The number of nodes in the list is in the range [1, 5 * 104].1 <= Node.val <= 1000Example 1
Example 2
Example 3

Example 4

The number of nodes in the list is in the range [1, 5 * 104].1 <= Node.val <= 1000