From c176257c2676dd4cead9bd783547c8f93e08b6f5 Mon Sep 17 00:00:00 2001 From: marina <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Mon, 7 Aug 2023 18:07:35 -0700 Subject: [PATCH] Update README.md --- queues/README.md | 2 ++ 1 file changed, 2 insertions(+) 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 ```