- contains(T) - Method in class student_classes.Bag
-
Returns true if this Bag contains at least one copy of the key
.
- contains(T) - Method in class student_classes.DenseSearchTree
-
Returns true if at least instance of target
is found in tree.
- count(T) - Method in class student_classes.Bag
-
Returns the number of occurrences of ele
in the Bag;
returns 0 in the event that ele
is not in Bag.
- count(T) - Method in class student_classes.DenseSearchTree
-
Returns an int greater than or equal to 0, indicating how many occurrences
of target
reside in the tree.