89. Circular Buffer-I

Question.1

A circular buffer is created with capacity = 4. The following operations are performed:

push(10);  push(20); push(30);  push(40);

pop();     pop();

push(50);  push(60);

Buffer state after all the operations-

Index0123
Value50603040

 

What are the values of head, tail, and count after all operations?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!