when we are using two queues for making a stack , i think the size of stack of stack formed must be size of largest queue not the sum of queues.
Size of stack formed
Question not clear enough.
Please refer this:
Size of queue must simply be equal to the total number of elements.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.