MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / IsSupersetOf

Method IsSupersetOf

structure/set/set.go:35–35  ·  view source on GitHub ↗

IsSupersetOf: checks whether set is superset of set2 or not.

(set2 Set[T])

Source from the content-addressed store, hash-verified

33 IsProperSubsetOf(set2 Set[T]) bool
34 // IsSupersetOf: checks whether set is superset of set2 or not.
35 IsSupersetOf(set2 Set[T]) bool
36 // IsProperSupersetOf: checks whether set is proper superset of set2 or not.
37 // ex: [1,2,3,4] proper superset of [1,2,3] -> true
38 IsProperSupersetOf(set2 Set[T]) bool

Callers 1

TestIsSupersetOfFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestIsSupersetOfFunction · 0.52