News for hackers. Stuff that matters.
Re:All Algorithms Implemented in Rust by msdrigg on Sunday August 21, 2022 @10:41PM (#32546714)
You can do a singly linked list just fine.

But with a doubly linked list, who owns the memory to each node?

In reality, you can do a doubly linked list with something like `RefCell`.

See the famous blog post on linked lists in rust here: https://rust-unofficial.github.io/too-many-lists/fourth-buil...

There are no comments on this comment yet.