What steps must be done to implement the toVector method in a link-based implementation of the ADT Bag?
What will be an ideal response?
use headPtr to get to first node, use links to traverse through the nodes, as you visit each node, copy its data item into the vector
Computer Science & Information Technology
You might also like to view...
Which of the following Snort modes writes packets' information to a text log file?
a. Sniffer b. Analyzer c. Packet logger d. Network intrusion-detection
Computer Science & Information Technology
A relationship where the lifetimes of parts are independent of the lifetime of the whole is best described as a(n)
a) generalization/specialization. b) composition. c) aggregation. d) association.
Computer Science & Information Technology