chore: initialize containerized Go learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
84be3e5d77
64 files changed
+1382
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# 02 — Slices, Mapy i Stringi (`rune` vs `byte`)
|
||||
|
||||
## Zadania (`collections.go`)
|
||||
1. `UniqueInts(nums []int) []int` — usuń duplikaty, zachowując kolejność pierwszego wystąpienia.
|
||||
2. `WordCounts(text string) map[string]int` — policz słowa (lowercase, `strings.Fields`).
|
||||
3. `ReverseRunes(s string) string` — odwróć napis poprawnie dla UTF-8 (polskie znaki/emoji -> użyj `[]rune`).
|
||||
|
||||
## Uruchomienie testów
|
||||
```bash
|
||||
make test PKG=./exercises/01-core/02-slices-maps-strings
|
||||
```
|
||||
Reference in new issue
Block a user