The node classes

class linked_list.ll.LL(data=None, nxt=None)[source]

Node class for the singly linked list.

The class has 2 members which are the following:

  • data: This is the the data that is stored in

    the current node. By default it’s None.

  • nxt: Points to the next node in the linked

    or it’s None if there is no next node.

class linked_list.dll.DLL(data=None, prev=None, nxt=None)[source]

Node class for the doubly linked list.

The class has 3 members which are the following:

  • data: This is the the data that is stored in

    the current node. By default it’s None.

  • prev: Points to the previous node in the

    linked list or it’s None if there is no previous node.

  • nxt: Points to the next node in the linked

    or it’s None if there is no next node.