You don't need to store the exponent in the linked list: the exponent can be given by the digit's position. For example 365 can be stored as the list 5->6->3
, though storing a single digit per list node is not so efficient.
You will need as many linked lists as there are input numbers, and you won't know how many there will be before reading the expression will you?