From 2fba62708f72cc9750009fccac6b06b9a60f40a3 Mon Sep 17 00:00:00 2001 From: Nocturn9x Date: Tue, 15 Mar 2022 16:57:23 +0100 Subject: [PATCH] Added clear and clearPop to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 31b8f9a..8f97517 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,11 @@ other.add(9) other.add(10) queue.extend(@[5, 6, 7, 8]) queue.extend(other) + +# Clears the queue in O(1) time +queue.clear() +# Clears the queue in O(n) time +queue.clearPop() ``` ---------------------