chore: initialize containerized Python learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
ae4c421815
63 files changed
+1273
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# 08 — Struktury Danych (`Stack`, `Queue`, `Counter`, `defaultdict`)
|
||||
|
||||
## Zadania (`ds_ex.py`)
|
||||
1. `Stack[T]` — generyczny stos (`push`, `pop`, `peek`, `is_empty`).
|
||||
2. `Queue[T]` — generyczna kolejka na `collections.deque` (`enqueue`, `dequeue`, `__len__`).
|
||||
3. `top_k_frequent(items: list[str], k: int) -> list[str]` — zwróć `k` najczęstszych elementów używając `Counter`.
|
||||
|
||||
## Uruchomienie testów
|
||||
```bash
|
||||
make test MOD=01-core/08-data-structures
|
||||
```
|
||||
Reference in new issue
Block a user