What does the following function do?
void mystery(queueType& q){stackType s; while (!q.isEmptyQueue ( )){s.push(q.front ( )); q.deleteQueue ( );}while (!s.isEmptyStack ( )){q.addQueue(2 * s.top ( )); s.pop ( );}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.