mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 06:46:18 -04:00
Update README.md
This commit is contained in:
parent
f895ac1da8
commit
c176257c26
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@
|
|||
|
||||
* as long as we know the length of the queue, we can instantly locat its tails based on this formula:
|
||||
|
||||
<br>
|
||||
|
||||
```
|
||||
tail_index = (head_index + queue_length - 1) % queue_capacity
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue