• Post Reply Bookmark Topic Watch Topic
  • New Topic

doubly linked list  RSS feed

 
faisal hameed
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do we have senitel node always in doubly linked list in Java??
 
Henry Wong
author
Sheriff
Posts: 23290
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
senitel node??
 
Istvan Kovacs
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:senitel node??

http://en.wikipedia.org/wiki/Linked_list#Sentinel_nodes
 
Istvan Kovacs
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
faisal hameed wrote:do we have senitel node always in doubly linked list in Java??


Note that you can't access the internal representation (nodes) of the built-in type java.util.LinkedList; it just implements the java.util.List interface, and provides position-based access.

For your own implementation, it's up to you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!