menu_book Course Curriculum (Data Structures & Algorithms) expand_more
Complexity & Foundations
Arrays & Strings
Linked Lists
Stacks & Queues
Hashing
Trees & Heaps
Graphs
Doubly linked list
Learn Doubly linked list in Data Structures & Algorithms with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
Advertisement
data-structures-algorithms-028.py
python
class Node:
def __init__(self,v): self.v,self.prev,self.next=v,None,None
a,b=Node(1),Node(2); a.next=b;b.prev=a
print(a.next.v,b.prev.v)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content