std reminds me, does anyone else here know CUDA? I'm trying to start using it and holy cow is it hard to do. The forums are pretty abysmal over there and I like you guys way more.

One of the things I never though I'd have to really, really learn was how addresses work. Like, you can't just copy data and data->next because when you copy data you mess up the address of data->next and it's honestly just a mess, omg.

Also, CUDA doesn't even support recursion for GPU's less than $650. So yay!

But to be on-topic, I think std had a pretty good idea of how to complete this assignment in the first place. I would've done it with previous and next arrays.