Learn Stack data structures in 10 minutes

10 Views
Published
stack data structure tutorial example explained

#stack #data #structure

// *******************************************************

// stack = LIFO data structure. Last-In First-Out
// stores objects into a sort of "vertical tower"
// push() to add objects to the top
// pop() to remove objects from the top

// uses of stacks?
// 1. undo/redo features in text editors
// 2. moving back/forward through browser history
// 3. backtracking algorithms (maze, file directories)
// 4. calling functions (call stack)

// *******************************************************

music credits
Category
Bro Code
Tags
stack, data structure stack, stack data structure
Be the first to comment