DEV Community

Discussion on: Six Data Structures To Help You Ace Your Technical Interview

Collapse
 
horaceshmorace profile image
Horace Nelson

Arrays. That’s it. If you’re doing database work, then maybe graphs, too.

Graphs are just many-to-many relationships, like in a social network in which users can be connected to many users who are connected to many users. A graph is a bunch of nodes and the spider web of connections (called edges) between them.

A stack is a JavaScript array you add items to via push(), and get items from via unshift(). A queue is a JavaScript array you add items to via push(), and get items from via pop().

I’ve never once used a linked list or a binary tree outside of a job interview.