Commit 75094da
authored
Implement simple stack class in stack.py
**Title:** Add Stack Implementation in data_structures
**Description:**
This PR adds a simple Stack data structure implementation in Python to the `data_structures` directory. The class supports `push`, `pop`, and `is_empty` methods, with error handling for popping from an empty stack.
Let me know if you would like me to add tests or further documentation.1 parent a71618f commit 75094da
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments