In a interview question I was asked to implement a priority queue using queues,
After the interview I googled it and found that it can be implemented using two queues, but I did not find how..
Please can anybody explain me.
Thanks in advance.
In a interview question I was asked to implement a priority queue using queues,
After the interview I googled it and found that it can be implemented using two queues, but I did not find how..
Please can anybody explain me.
Thanks in advance.