Skip to content

Commit 32b3b83

Browse files
authored
Update python-quiz.md (#7241)
update Q76 with the correct definition of general queue definition and add reference.
1 parent f46ae55 commit 32b3b83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/python-quiz.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,11 +1055,14 @@ my_list = ['kiwi', 'apple', 'banana']
10551055

10561056
#### Q76. Describe the functionality of a queue.
10571057

1058-
- [x] A queue adds items to either end and removes items from either end.
1058+
- [x] A queue adds items to the back and removes items from the front.
10591059
- [ ] A queue adds items to the top and removes items from the top.
10601060
- [ ] A queue adds items to the top and removes items from anywhere in, a list.
10611061
- [ ] A queue adds items to the top and removes items from anywhere in the queue.
10621062

1063+
Typical queue definition follows "first-in, first out" (FIFO) where items are enqueued on one-side and dequeued from the other.
1064+
[Reference](https://www.geeksforgeeks.org/dsa/queue-data-structure/)
1065+
10631066
#### Q77. Which choice is the most syntactically correct example of conditional branching?
10641067

10651068
- [x] A:

0 commit comments

Comments
 (0)