Results 1 to 6 of 6
Thread: Help with stacks
- 10-31-2009, 06:19 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 14
- Rep Power
- 0
- 10-31-2009, 06:35 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
What do you think?
- 10-31-2009, 06:43 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,393
- Blog Entries
- 7
- Rep Power
- 17
It would be a stack on steroids.
kind regards,
Jos
- 11-01-2009, 09:35 AM #4
Member
- Join Date
- Oct 2009
- Posts
- 14
- Rep Power
- 0
It wouldn't be a mistake because we can add/remove elements from the middle of a single linked list
- 11-01-2009, 10:08 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,393
- Blog Entries
- 7
- Rep Power
- 17
A stack doesn't need to be implemented by a single linked list. Purists may say that you can push and pop elements to/from a stack and that's it. A more practical approach might say that more operations on stacks should be possible. The Stack implementation in Java is quite weak because behind its back you can cast a Stack to its parent class, a Vector; you can do much more with a Vector than you can do with a Stack.
kind regards,
Jos
- 11-01-2009, 11:23 AM #6
Member
- Join Date
- Oct 2009
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
2 stacks, the second keeps mirroring the second??
By jigglywiggly in forum New To JavaReplies: 7Last Post: 10-11-2009, 07:31 AM -
Arithmetic Stacks
By unc123w in forum New To JavaReplies: 22Last Post: 10-21-2008, 08:24 PM -
Stacks, lists...
By little_polarbear in forum New To JavaReplies: 7Last Post: 08-02-2008, 01:59 PM -
Stacks
By Zosden in forum Advanced JavaReplies: 15Last Post: 05-05-2008, 08:16 AM -
Using Stacks
By ravian in forum New To JavaReplies: 7Last Post: 11-28-2007, 09:53 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks