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

Method IsProperSupersetOf

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

IsProperSupersetOf: checks whether set is proper superset of set2 or not. ex: [1,2,3,4] proper superset of [1,2,3] -> true

(set2 Set[T])

Source from the content-addressed store, hash-verified

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
39 // Union: gives new union set of both sets.
40 // ex: [1,2,3] union [3,4,5] -> [1,2,3,4,5]
41 Union(set2 Set[T]) Set[T]

Callers 1

TestIsProperSupersetOfFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestIsProperSupersetOfFunction · 0.52