1 votes 1 votes Options are TI==(P/Q*i-1) Ti==(P/Q*i+1) Ti==(P/Q*(i-1)-1) Ti==(P/Q*(i+1)-1) Programming in C made-easy-test-series data-structures stack array + – shivangi5 asked Dec 12, 2017 • edited Mar 7, 2019 by Aditi Singh shivangi5 663 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments saxena0612 commented Dec 12, 2017 reply Follow Share No of stack=Q each of size P/Q starting index is 0 of both array and stack! 0 votes 0 votes Shivansh Gupta commented Dec 12, 2017 i edited by Shivansh Gupta Dec 12, 2017 reply Follow Share It should be $\frac{P}{Q} * i-1$ as we have to skip the $i$ stacks(Stack 0 to stack i-1) each size $\frac{P}{Q}$ 0 votes 0 votes Ashwin Kulkarni commented Dec 12, 2017 reply Follow Share It is $\frac{p}{Q}$* i -1 @shivansh That bracket doesn't seem correct. First stack size * index should be done then -1 will give underflow. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes condition for overflow is IF ( iP/Q -1 ==0) PRINT→ underflow so option 1 is correct rish1602 answered Feb 5, 2021 rish1602 comment Share Follow See all 0 reply Please log in or register to add a comment.