1 votes 1 votes DS data-structures + – pritigoya asked Sep 9, 2018 pritigoya 795 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments Deepanshu commented Sep 9, 2018 reply Follow Share @vin101 WHY REAR AT 3 ????? REAR POINTS TO POSITION WHERE NEXT ELEMENT HAS TO BE INSERT. SO WHY 3 0 votes 0 votes vin101 commented Sep 9, 2018 i edited by vin101 Sep 10, 2018 reply Follow Share Well it's a matter of adopting a convention to disambiguate between queue empty and full conditions Also after inserting at 2nd index rear points to next position where element has to be inserted hence 3. 0 votes 0 votes `JEET commented Nov 19, 2019 reply Follow Share $34$ should be the answer. Where there is so much confusion. and how come the answer happens to be $39$ @pritigoya 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes the ans is 34 anjali007 answered Sep 9, 2018 anjali007 comment Share Follow See 1 comment See all 1 1 comment reply `JEET commented Nov 19, 2019 reply Follow Share Good explanation. 0 votes 0 votes Please log in or register to add a comment.