- plot() - Method in class list.IntList
-
"Plots" the list in the console, using the '?' character.
The number of '*'s in each row is given by the corresponding entry.
For example, the list
[2, 7, 1, 5]
should result in the following console output:
##
#######
#
#####
where '#' would be replaced by the solid block character ('?').
(Ignore the "br" tags, these are just for formatting the documentation)
- plus(IntList) - Method in class list.IntList
-
Compute the entry-wise sum of the current list with another list.
For example, adding the lists
[0, 1, 2, 3]
[1, 5, 5, 3]
Should return the list
[1, 6, 7, 6]
You can do this with a call to the constructor, followed by a loop
with calls to get() and prepend().
- prepend(int) - Method in class list.IntList
-
Inserts a new entry at the front of this list.
For example, if myList is
[1, 2, 5, 3]
after calling myList.prepend(10), myList will have changed to
[10, 1, 2, 5, 3]
- prod() - Method in class list.IntList
-
Compute the product of the values stored in the list
- PublicTests - Class in <Unnamed>
-
- PublicTests() - Constructor for class PublicTests
-