Question: In lecture 1 we ( briefly ! ) discuss how we can implement a Queue with a List, which begs the question: why do we
In lecture we briefly discuss how we can implement a Queue with a List, which begs the question: why do we bother defining a Queue at all, if a List does everything a Queue can do and more?
Select all the options below that are reasons why you might use a Queue instead of a List.
Question options:
a
It signals to a reader of your code that you'll only be accessing data in a limited way, which can help the reader better understand your code.
b
It makes the code easier to debug.
c
It might provide faster performance on certain operations.
d
It still allows us all the functionality of a List if we want it
e
It keeps our code simpler.
f
It prevents us from overengineering a solution.
g
It makes the code easier to maintain.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
