JavaScript
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
## Stack
|
||||
Stack Class
|
||||
Die `Stack`-Datenstruktur, die wir erstellen werden, wird **nur Ganzzahlen** speichern
|
||||
### Python
|
||||
#### main.py
|
||||
|
||||
```python
|
||||
from stack import Stack
|
||||
|
||||
stack = Stack()
|
||||
print(len(stack.elements))
|
||||
```
|
||||
|
||||
#### stack.py
|
||||
|
||||
```python
|
||||
class Stack:
|
||||
|
||||
def __init__(self):
|
||||
|
||||
self.elements = []
|
||||
```
|
||||
Reference in New Issue
Block a user