Question 10809 – APPSC-2016-DL-CS
March 19, 2024
Question 10831 – APPSC-2016-DL-CS
March 19, 2024
Question 10809 – APPSC-2016-DL-CS
March 19, 2024
Question 10831 – APPSC-2016-DL-CS
March 19, 2024

Question 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: 
A
t2=(n-1) or t1=(n-1)
B
t1=n/2 or t2=(n-1)
C
t1=0 and t2=(n-1)
D
t2=t1+1
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!