• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubly linked list

 
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
Marshal
Pie
Posts: 21184
80
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