Question 10809 – APPSC-2016-DL-CS
March 19, 2024Question 10831 – APPSC-2016-DL-CS
March 19, 2024Question 10820 – APPSC-2016-DL-CS
Consider optimal implementation of two stacks growing in opposite directions in a single array A[n]. If t1 and t2 denote the stack pointers, which of the following, checks for stack full condition?
Correct Answer: D
Question 18 Explanation:
t2=(n-1) or t1=(n-1)
t1=n/2 or t2=(n-1)
t1=0 and t2=(n-1)
t2=t1+1
Subscribe
Login
0 Comments