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-
| Index | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| Value | 50 | 60 | 30 | 40 |
What are the values of head, tail, and count after all operations?