What is the correct method used to insert and delete items from queue?
Answers
Answered by
1
Solution:
In Stack it uses push to insert item into queue and pop while removing item from the queue. In Queue it uses enqueue in pushing item into queue and dequeue in removing item from queue. And in List it uses add while pushing item in queue and remove while removing items from queue.
These are the right method used to insert and delete items.
Similar questions