Why should I use Deque over Stack?
I need a Stack data structure for my use case. I should be able to push items into the data structure and I … Read more
I need a Stack data structure for my use case. I should be able to push items into the data structure and I … Read more
What is stack unwinding? Searched through but couldn’t find enlightening answer! 12 Answers 12
I need to add elements to an ArrayList queue whatever, but when I call the function to add an element, I want it … Read more
I have the following piece of code which fails with the following error: RuntimeError: maximum recursion depth exceeded I attempted to rewrite this … Read more
I am executing my a.out file. After execution the program runs for some time then exits with the message: **** stack smashing detected … Read more
In Android I have some activities, let’s say A, B, C. In A, I use this code to open B: Intent intent = … Read more
Suppose we have two stacks and no other temporary variable. Is to possible to “construct” a queue data structure using only the two … Read more
alloca() allocates memory on the stack rather than on the heap, as in the case of malloc(). So, when I return from the … Read more
This question may sound fairly elementary, but this is a debate I had with another developer I work with. I was taking care … Read more
Why is Java Vector considered a legacy class, obsolete or deprecated? Isn’t its use valid when working with concurrency? And if I don’t … Read more