mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update README.md
This commit is contained in:
parent
f895ac1da8
commit
c176257c26
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
* as long as we know the length of the queue, we can instantly locat its tails based on this formula:
|
* 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
|
tail_index = (head_index + queue_length - 1) % queue_capacity
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user