Skip to content

Commit d2bc1fa

Browse files
authored
Create readme.md
1 parent 5ddb59c commit d2bc1fa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

queues_reversal/readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Given a Queue Q containing N elements. The task is to reverse the Queue. Your task is to complete the function rev(), that reverses the N elements of the queue.
2+
3+
Example 1:
4+
5+
Input:
6+
6
7+
4 3 1 10 2 6
8+
9+
Output:
10+
6 2 10 1 3 4
11+
12+
Explanation:
13+
After reversing the given
14+
elements of the queue , the resultant
15+
queue will be 6 2 10 1 3 4.

0 commit comments

Comments
 (0)