feat: add day 5 2024
Some checks failed
Go Bump / bump (push) Failing after 44s
Go Test / build (push) Failing after 14m5s

This commit is contained in:
xuu
2024-12-06 13:47:49 -07:00
parent 77a0669f45
commit aa0a2b7b7d
5 changed files with 1540 additions and 0 deletions

9
set.go
View File

@@ -23,6 +23,15 @@ func (m *Set[T]) Has(a T) bool {
return ok
}
func (m *Set[T]) ContainsAll(other ...T) bool {
for _, a := range other {
if !m.Has(a) {
return false
}
}
return true
}
type defaultMap[K comparable, V any] struct {
m map[K]V
d V