Stack

برنامه‌نویسی 2 views

Persian equivalent پشته

In plain language A stack gives you the most recently added item first.

Short definition It is a last-in, first-out data structure accessed through operations that add and remove items at the top.

Detailed explanation and example

An editor can push each edit onto a stack. The first Undo pops the latest change from the top and reverses that change.

Reference