Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Queue-Usage/00-TASK.txt
Normal file
18
Task/Queue-Usage/00-TASK.txt
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{{Data structure}}
|
||||
[[File:Fifo.gif|frame|right|Illustration of FIFO behavior]]
|
||||
|
||||
;Task:
|
||||
Create a queue data structure and demonstrate its operations.
|
||||
|
||||
(For implementations of queues, see the [[FIFO]] task.)
|
||||
|
||||
|
||||
Operations:
|
||||
::* push (aka ''enqueue'') - add element
|
||||
::* pop (aka ''dequeue'') - pop first element
|
||||
::* empty - return truth value when empty
|
||||
|
||||
<br>
|
||||
{{Template:See also lists}}
|
||||
<br><br>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue