[b]"What’s the best approach when data structures are being built from scratch?"[/b] or [b]"How do you optimize pe

22 Replies, 802 Views

Linked lists are overrated unless you’re doing tons of inserts/deletes. For most cases, a dynamic array with smart resizing is way faster.

If you’re in JS, just use arrays and let V8 optimize it. Otherwise, maybe try a library like Immutable.js for persistent structures?

Messages In This Thread



Users browsing this thread: 3 Guest(s)