in this code what is the logic behind
public :
stackusingqueue (){
q1= new queue();
q2=new queue();
what does these steps indicate?
Stack using queue
@Aditiverma hey aditi first we apologize for the video what bhaiya did is bhaiya take two pointer q1 and q2 which help in the swapping from one queue to another and this is the constructor
q1= new queue();
q2=new queue();
which hold integer value
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.