Try this exercise. Click the correct answer from the options.
Which of the following is NOT a best practice when implementing a queue?
Click the option that best answers the question.
- Enqueue items at the front of the queue
- Use a linked list to store the elements
- Use two pointers to keep track of the front and rear of the queue
- Check if the queue is empty before dequeueing an item