Skip to content

a-tibi/Queue2Stacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

"# Queue2Stacks"

Implementing a queue using two stacks.

Then process queries, where each query is one of the following types:

1 x: Enqueue element into the end of the queue.

2: Dequeue the element at the front of the queue.

3: Print the element at the front of the queue.