Array
Articles and practice problems tagged Array.
Articles
Data Structures
Arrays Explained: How They Work and What Each Operation Costs
How arrays store data in memory, why reading by index is O(1) but inserting at the front is O(n), and what that means for JavaScript arrays.
· 8 min read
Data Structures
Linked Lists Explained
How a linked list stores data as nodes joined by pointers, what its operations cost compared with an array, and a simple JavaScript implementation.
· 9 min read
Data Structures
Stacks and Queues Explained
How stacks (last in, first out) and queues (first in, first out) work, what their operations cost, and how to build both correctly in JavaScript.
· 8 min read