Update README.md

This commit is contained in:
marina 2023-08-07 20:12:57 -07:00 committed by GitHub
parent a4fc7156af
commit dbcf75bcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,8 @@ class CircularQueue:
<br>
* a simpler and more natural implementation, as the size of the queue is not "artificial" like before.
* a linked list could be more memory efficient, since it does not pre-allocate memory for unused capacity (and size of the queue is not "artificial" like before).
* note that this queue is not thread-safe: the data structure could be corrupted in a multi-threaded environment (as race-condition could occur). to mitigate this problem, one could add the protection of a lock.