From 27b2704e19f77a258734ffbc6eb6b8eccc02daee Mon Sep 17 00:00:00 2001 From: Vikram Pasupathy Date: Wed, 22 Jan 2025 20:10:18 -0800 Subject: [PATCH] Update 05_deques_lls.md Remove the |item| param from the remove functions, as in deques, this is incorrect. --- prose/05_deques_lls.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prose/05_deques_lls.md b/prose/05_deques_lls.md index c7226dc..e480a0c 100644 --- a/prose/05_deques_lls.md +++ b/prose/05_deques_lls.md @@ -8,8 +8,8 @@ Here is the ADT. - **addfirst(item)** - add `item` to the front of the deque. - **addlast(item)** - add `item` to the end of the deque. - - **removefirst(item)** - remove and return the first item in the deque. - - **removelast(item)** - remove and return the last item in the deque. + - **removefirst** - remove and return the first item in the deque. + - **removelast** - remove and return the last item in the deque. - **len** - return the number of items in the deque.