2 votes 2 votes # plz check ??? i missed something DS made-easy-test-series data-structures queue + – Hradesh patel asked Jan 13, 2017 recategorized Mar 6, 2019 by adeebafatima1 Hradesh patel 467 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Samujjal Das commented Jan 13, 2017 reply Follow Share Same question https://gateoverflow.in/3463/gate2007-it-30 2 votes 2 votes dd commented Jan 13, 2017 reply Follow Share reverse queue 0 votes 0 votes abhisekhgupta commented Oct 15, 2023 reply Follow Share yes the concept of recursion 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes You missed the function call f(Q) that is called recursively. And at last recursive call first insert will be done and so on, which eill reverse queue. Rahul Jain25 answered Jan 13, 2017 Rahul Jain25 comment Share Follow See all 0 reply Please log in or register to add a comment.