Originally Posted by itCbitC That's correct for the parameters passed to insertnode() and it should return a value instead of nothing. And how do you propose to return both a head and a tail?
Originally Posted by tabstop And how do you propose to return both a head and a tail? By curling its tail onto itself jokes apart, imo only need to return the head