Data Structures the Fun Way - 4. Stacks and Queues
π 4.1 Stacks
Implementing Stack with Array
const stack = [];
stack.push(10); // Add (push)
stack.push(20);
console.log(stack); // [10, 20]
stack.pop(); // Remove (pop)
console.log(stack); // [10]Implementing Stack with Linked List
π 4.2 Queues
Implementing Queue with Array
Implementing Queue with Linked List
π 4.3 Importance of Order
Depth-First Search (DFS)
Breadth-First Search (BFS)
Summary
PreviousData Structures the Fun Way - 3. Dynamic Data StructuresNextData Structures the Fun Way - 5. Binary Search Trees
Last updated