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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.