You are viewing a single comment's thread. Return to all comments →
in C#
class Solution { public Stack<char> charS = new Stack<char>(); public Queue<char> charQ = new Queue<char>(); void pushCharacter(char c) { charS.Push(c); } char popCharacter() { return charS.Pop(); } void enqueueCharacter(char c) { charQ.Enqueue(c); } char dequeueCharacter() { return charQ.Dequeue(); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 18: Queues and Stacks
You are viewing a single comment's thread. Return to all comments →
in C#