MCPcopy Create free account
hub / github.com/devparthgarg/Data-Structures-and-Algorithms / main

Function main

13. Queue/01_Introduction.cpp:4–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int main()
5{
6 /*
7
8 Queue is FIFO (First In First Out) data structure
9
10 ------------------------
11 dequeue() <--- 10 | 20 | 30 | 40 | 50 | <--- enqueue(x)
12 ------------------------
13
14 ^ ^
15 | |
16 | |
17
18 front rear
19
20 Operations :
21
22 a.enque(x) : insert
23 b.deque() : remove
24 c.getfront() : get front element
25 d.getrear() : get last element
26 e.size() : get current size of queue
27 f.isempty() : check if queue empty
28
29 all operations have time comp. O(1)
30
31 */
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected