Created
November 17, 2016 07:06
-
-
Save cihanyakar/541b0cf05c9161c52b91aa4c2e024b8a to your computer and use it in GitHub Desktop.
Yılmaz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Queue<string> TersCevir(Queue<string> kuyruk) | |
{ | |
var stack = new Stack<string>(); | |
while (kuyruk.Count > 0) | |
{ | |
stack.Push(kuyruk.Dequeue()); | |
} | |
var queue = new Queue<string>(); | |
while (stack.Count > 0) { | |
queue.Enqueue(stack.Pop()); | |
} | |
return queue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment