search
Log In

Recent questions tagged circular-queue

1 vote
0 answers
1
$1)$How circular queue can be implemented? $2)$ For which data structure circular queue cannot be implemented? $(A)$Array $(B)$ Singly Linked List $(C)$ Doubly Linked List $(D)$ Stack
asked May 24, 2019 in DS srestha 313 views
0 votes
1 answer
2
1 vote
2 answers
3
The initial configuration of circular queue as follows What is status of states of queue contents after the following sequence of steps enqueue x dequeue enqueue y dequeue dequeue a)x,y,____,_____,_____ b)x,___,y,____,____ c)____,_____,x,y,____ d)_____,x,y,_____,_____
asked Oct 29, 2017 in DS srestha 708 views
0 votes
1 answer
4
#DS I have this confusion in concluding the overflow condition of a circular Queue i.e. when the circular queue will be considered full. As per the text i have, it says a circular queue is full when: Front=0 and Rear=MAX-1 ; which seems quite straight forward. eg: The queue [10,5, ... is shouldn't the overflow condition of a circular Queue be: if((Front==0 && Rear==MAX-1) || (Rear==Front-1)) ???
asked Oct 24, 2017 in Programming nick17india 524 views
1 vote
3 answers
5
If $(rear==maxsize-1)$ $rear=0;$ else $rear=rear+1;$ is required in : circular queue linear queue stack deque
asked Sep 26, 2017 in Databases rishu_darkshadow 669 views
1 vote
1 answer
6
a)a_cb_ b)_abc_ c)abc_ _ d)_ab_c
asked Aug 21, 2017 in Programming Xylene 517 views
0 votes
3 answers
7
How many elements a simple queue and a circular queue both of size N can accommodates ? ( A ) N and N respectively. ( B ) N-1 and N-1 respectively. ( C ) N and N-1 respectively. ( D ) N-1 and N respectively.
asked Jun 19, 2017 in DS Roshan Pawar 1.1k views
0 votes
1 answer
8
asked Jan 30, 2017 in DS monty 302 views
0 votes
0 answers
9
Doubt: dequeue really deletes the element or just moves the pointer? I'm not getting the answer.
asked Jan 21, 2017 in DS target2017 301 views
To see more, click for the full list of questions or popular tags.
...