Java balanced expressions check {[()]}?

I am trying to create a program that takes a string as an argument into its constructor. I need a method that checks...

What's the Big-O of a stack, queue, set, and deque??

What is the Big-O efficiency of a stack, queue, set, and deque as it pertains to insertion, search, indexing, space,...

How to implement 3 stacks with one array??

Sometimes, I come across the following interview question: How to implement 3 stacks with one array ? Of course, any...

Why do we need to support the function isFull() in a queue or stack??

Why do we need to support the function isFull() in a queue or stack? We can store data on disk and load whatever si...

numpy-equivalent of list.pop??

Is there a numpy method which is equivalent to the builtin pop for python lists? Popping obviously doesn't work on...

Postfix Calculator Java?

Ok so I have to read in a postfix expression from a file. The postfix expression must have spaces to separate each o...

Error: incompatible types: Object cannot be converted to char?

I've implemented a method to reverse a String using stack as ArrayList, but an error says error: incompatible types:...

Why I do get “Cannot find bound of current function” when I overwrite the ret address of a vulnerable program??

I want to exploit a stack based buffer overflow for education purposes. There is a typical function called with a p...

How Can I return second element of stack without pop() function in C++??

I need help for return second element of stack without pop() ? but I don't know how can I use. my code : stack<...

How do I find the maximum stack size??

I am working on Ubuntu 11.04. How do I find out the maximum call stack size of a process and also the size of each f...

stack around the variable…was corrupted?

I have a simple function that writes some data to a new file. It works, and the file is written, but I get the above...

Java, Printing the stack values?

In Java, I want to print the contents of a Stack. The toString() method prints them encased in square brackets deli...

How to increase the Java stack size??

I asked this question to get to know how to increase the runtime call stack size in the JVM. I've got an answer to t...

How do you implement a Stack and a Queue in JavaScript??

What is the best way to implement a Stack and a Queue in JavaScript? I'm looking to do the shunting-yard algorithm ...

Java ArrayList how to add elements at the beginning?

I need to add elements to an ArrayList queue whatever, but when I call the function to add an element, I want it to ...