We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Queue using Two Stacks
- Discussions
Queue using Two Stacks
Queue using Two Stacks
Sort by
recency
|
253 Discussions
|
Please Login in order to post a comment
My C# solution
Spent ages trying to find input from args when it actually comes from Console.ReadLine. Had to read up on two stacks before attempting question. Was failing a few test cases on time limit until I switched from using linq .Any() to checking .Count > 0
uh, does this even work on C#? It's not passing me any args
js answer using solely regex to parse the input (and actually 2 'stacks'):
My Solution in Javascript also works with TypeScript:
function processData(input) {
}