Learn Stacks
Learn about the first-in-last-out data structure called a "stack". Study it conceptually and use it in practice. Apply what you've learned to the famous Towers of Hanoi problem!
StartKey Concepts
Review core concepts you need to learn to master this subject
Stack overflow
Stack overflow
Every stack has a size that determines how many nodes it can accommodate. Attempting to push a node in a full stack will result in a stack overflow. The program may crash due to a stack overflow.
A stack is illustrated in the given image. stackA.push(xg)
will result in a stack overflow since the stack is already full.
Stacks: Conceptual
Lesson 1 of 2
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory