-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# RustyDSA | ||
|
||
### [Stack](./data_structure/stack.rs) | ||
### [Stack](./src/data_structure/stack.rs) | ||
A stack is a linear data structure that follows the Last-In-First-Out (LIFO) principle. | ||
Elements are added and removed from the top, or "topmost" end of the stack. It operates like a collection of items stacked on top of each other, where the last item added is the first to be removed. | ||
Stacks are used in various applications, such as managing function calls in programming, tracking navigation history, and implementing undo operations. | ||
Common operations on a stack include push (adding an element), pop (removing the top element), and peek (viewing the top element without removal). | ||
|
||
* [Wikipedia](https://en.wikipedia.org/wiki/Stack_(abstract_data_type) | ||
* [Wikipedia](https://en.wikipedia.org/wiki/Stack_(abstract_data_type)) |