• Post Reply Bookmark Topic Watch Topic
  • New Topic

data structures  RSS feed

 
marc perry batuigas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone please show me a good (clear) pseudocode or an algorithm perhaps (a code, the better )in implementing deque as singly linked list....

i've been trying to make-up a code, but i can't quite make it work...i need the code to be placed in a single page, i mean, without "referencing" to other classes or other java file...i would really really appreciate it if someone could help me...

No need to shout. I removed the !!...!! from your subject. - Gregg
[ May 14, 2004: Message edited by: Gregg Bolinger ]
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can use the library LinkedList, it will be rather easy: simply call the function removeFirst(). See the Java API for more details.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting new way to present us your homework assignment...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Intermediate forum...
 
marc perry batuigas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
intermediate?? but i'm just a beginner!!! *bump

anyway, i'm trying to make a program which does on "relating" with other predefined classes...like the last program i presented here last--MyLinkedList(i just copied the methods and constructors somewhere in the net, but i'm proud to say that i made the main, which by the way is the most important part in my project, with help of course from you guyz)...

i just need to know how to incorporate certain classes without using "extends" and "implements" calls...

i'm workin on linked deque..fyi...
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by marc perry batuigas:

i've been trying to make-up a code, but i can't quite make it work...i need the code to be placed in a single page, i mean, without "referencing" to other classes or other java file...i would really really appreciate it if someone could help me...


So can you show us the code you have been trying to make-up and we can help you out from there.
 
marc perry batuigas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ty man, but i kinda solved it already... i was missing a method which converts the "list" into strings...anyway i'm working on trees right now...will let u guys know if i have some trouble with it...thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!