3 ms·
I guess you could just allocate the head node on the heap too. I think rust probably has better tools for this. Probably some sort of let node = node.next
by vips7L 6y ago
I guess you could just allocate the head node on the heap too.
I think rust probably has better tools for this.
Probably some sort of
let node = node.next;
while let Some(n) = node {
node = n.next
}