Question
A programmer needs sliding-window algorithms, and the chosen structure has the property that both front and rear operations can be efficient. Which choice fits best?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Deque
Explanation:
Deque fits because it supports sliding-window algorithms and both front and rear operations can be efficient.
Both clues point to this choice.
Leave a Reply