News for hackers. Stuff that matters.
Re:X.ai: $6B Series B by vidarh on Monday May 27, 2024 @03:49AM (#40488619)
Assuming I can choose linked list implementation, that is trivial:

It's a doubly linked list where the head contains a pointer to the tail, and a flag that determines which pointer in the nodes is forward and which is backward.

Re:X.ai: $6B Series B by belter on Monday May 27, 2024 @04:54AM (#40488950)
It's a trick question. Ask if its on Space or Time complexity ;-)