diff --git a/queues/README.md b/queues/README.md index 47e8151..8a154fd 100644 --- a/queues/README.md +++ b/queues/README.md @@ -33,6 +33,8 @@ * as long as we know the length of the queue, we can instantly locat its tails based on this formula: +
+ ``` tail_index = (head_index + queue_length - 1) % queue_capacity ```