How come the Hint ask to put the list nodes in a vector?


#1

Obviously you don’t need them. Make a O(1) space solution please.