0 votes 0 votes An implementation of a queue Q, using two stacks S1and S2, is given below: The number Push and Pop operation needed is represented by X and Y, then the value of X + Y for following operation are ________. DS programming-in-c + – syncronizing asked Aug 23, 2018 edited Aug 25, 2018 by syncronizing syncronizing 483 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply MiNiPanda commented Aug 23, 2018 reply Follow Share Add this : 1 votes 1 votes MiNiPanda commented Aug 23, 2018 reply Follow Share 17 .. 1 votes 1 votes syncronizing commented Aug 25, 2018 reply Follow Share This should be the best answer! –1 votes –1 votes MiNiPanda commented Aug 25, 2018 reply Follow Share syncronizing Thank you :p I did not make it make it an answer because it was looking dull(the pic quality) hehe :p 0 votes 0 votes Please log in or register to add a comment.
Best answer 0 votes 0 votes Now Simply add total PUSH and POP operation. PUSH = 9 POP = 8 hence, 17 is the answer. Answer by @MiNiPanda syncronizing answered Aug 25, 2018 syncronizing comment Share Follow See 1 comment See all 1 1 comment reply syncronizing commented Aug 25, 2018 reply Follow Share Sorry for Alignment issue :P 0 votes 0 votes Please log in or register to add a comment.