stack
Queue using two stacks
I implemented it as an array with two stacks adjacent to each other, but their top开发者_运维知识库s on the either ends. That is, if top(stack1) is at the beginning of keys, top(stack2) is at the end[详细]
2023-04-10 04:07 分类:问答Determining the location of Top Of Stack
I am t开发者_高级运维rying to create an array based implementation of Stacks. I am a bit confused with where should the Top Of Stack (a variable in my implementation) be when,[详细]
2023-04-09 18:00 分类:问答Android finish Activity and start another one
I\'m curious about one thing. How can I finish my current activity and start another one. Example : MainActivity[详细]
2023-04-09 15:04 分类:问答Where should the top of stack be in linked list implementation of stack?
Here is what a linked list implementing a stack with 3 elements might look like: list v -------------------------[详细]
2023-04-09 13:37 分类:问答Stack versus Integer
I\'ve created a program to solve Cryptarithmetics for a class on Data Structures. The professor recommended that we utilize a stack consisting of linked nodes to keep track of which letters we replace[详细]
2023-04-09 09:21 分类:问答stack program print function not working properly [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic[详细]
2023-04-09 05:14 分类:问答Stack not returning empty even though it has no objects
This is seriously confusing and frustrating me. I already asked one question regarding this same program here. Going off of that code, I\'m having yet another problem with Stack. Here is a method that[详细]
2023-04-08 09:54 分类:问答Why aren't my push and pop methods working?
I\'m trying to implement a stack in Perl where I have an array. I want to push items on the array, pop items out and print out the new array like so: \"1,2,3,5,6[详细]
2023-04-08 09:36 分类:问答C Typed Stack: Linked-List Implementation
I have a computer science exam coming up and a large portion is going to be on programming in ansi C. I\'m new to C and as a review I tried to implement a stack using a linked-list. My code compiles b[详细]
2023-04-07 23:39 分类:问答Stack returning Objects instead of Integers
I\'m trying to implement a program that involves an array of stacks. Each stack takes in Integer objects, but the problem is when I try to get an Integer object from the stack:[详细]
2023-04-07 14:49 分类:问答