You are given two integers m and n, which represent the dimensions of an head of a linked list of integers.
Generate an
If there are empty cells remaining in the matrix after exhausting all elements of the linked list, fill these remaining cells with
Return the generated matrix.
Constraints:
m, n
m n
The number of nodes in the list is in the range m n
Node.val
You are given two integers m and n, which represent the dimensions of an head of a linked list of integers.
Generate an
If there are empty cells remaining in the matrix after exhausting all elements of the linked list, fill these remaining cells with
Return the generated matrix.
Constraints:
m, n
m n
The number of nodes in the list is in the range m n
Node.val