Why would a stack be a poor choice for implementing an ADT bag?

a. it might fill up
b. you couldn’t account for duplicates
c. you need to be able to look through all the elements in the bag, not just the top of the stack
d. actually it would be a good choice

d. actually it would be a good choice

Computer Science & Information Technology

You might also like to view...

Passwords are set and changed on presentations to enhance ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Access forms can be laid out to follow existing paper forms

Indicate whether the statement is true or false

Computer Science & Information Technology