The ___________ operation in queues removes an element from the front without returning it.
- Dequeue
- Enqueue
- Front
- Peek
The Peek operation in queues retrieves the element at the front of the queue without removing it. This is useful for checking the next element to be dequeued without actually dequeuing it from the queue.
Loading...
Related Quiz
- Imagine you're working on a project where efficient memory utilization is crucial. How would you implement a resizable array data structure?
- Which HTTP header is used to mitigate Cross-Site Scripting (XSS) attacks?
- What is the main advantage of using NoSQL databases over traditional relational databases?
- What is the purpose of a version control system like Git?
- ___________ is a security vulnerability that occurs when an application fails to properly validate or sanitize input from the user.