MCPcopy
hub / github.com/TheAlgorithms/Go / Len

Method Len

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

Len: gives the length of the set (total no. of elements in set)

()

Source from the content-addressed store, hash-verified

22 Delete(item T)
23 // Len: gives the length of the set (total no. of elements in set)
24 Len() int
25 // GetItems: gives the array( []T ) of elements of the set.
26 GetItems() []T
27 // In: checks whether item is present in set or not.

Callers 15

increaseFreqMethod · 0.65
LengthMethod · 0.65
IsEmptyMethod · 0.65
LenMethod · 0.65
EmptyMethod · 0.65
IsSubsetOfMethod · 0.65
IsProperSubsetOfMethod · 0.65
IsProperSupersetOfMethod · 0.65
IntersectionMethod · 0.65
ExampleSetFunction · 0.65
TestNewFunction · 0.65
TestAddFunction · 0.65

Calls

no outgoing calls

Tested by 8

ExampleSetFunction · 0.52
TestNewFunction · 0.52
TestAddFunction · 0.52
TestDeleteFunction · 0.52
TestUnionFunction · 0.52
TestIntersectionFunction · 0.52
TestDifferenceFunction · 0.52
TestSymmetricDifferenceFunction · 0.52