mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add note for queue (#67036)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
+3
-1
@@ -13,12 +13,14 @@ In this lab, you will implement a queue data structure using functions. A queue
|
||||
|
||||
**User Stories:**
|
||||
|
||||
1. You should have a `enqueue` function that adds an element to the back of the queue.
|
||||
1. You should have an `enqueue` function that adds an element to the back of the queue.
|
||||
1. You should have a `dequeue` function that removes and returns the front element of the queue.
|
||||
1. You should have a `front` function that returns the front element of the queue without removing it.
|
||||
1. You should have a `size` function that returns the number of elements in the queue.
|
||||
1. You should have an `isEmpty` function that returns `true` if the queue is empty and `false` otherwise.
|
||||
|
||||
**Note:** Most tests depend on the `enqueue` function. Implement that one first, as tests for `dequeue`, `front`, `size`, and `isEmpty` require adding elements to the queue.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should have an `enqueue` function.
|
||||
|
||||
Reference in New Issue
Block a user