Skip to content

doubly linked list: add dataclass and typing #12647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Apr 1, 2025
Prev Previous commit
Next Next commit
Update doubly_linked_list_two.py
  • Loading branch information
MaximSmolskiy authored Apr 1, 2025
commit 767cbf3ef5f2c1811262ac9b14cb8a7c3a2b55f4
9 changes: 0 additions & 9 deletions data_structures/linked_list/doubly_linked_list_two.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ class Node:
def __str__(self) -> str:
return f"{self.data}"

def get_data(self) -> int:
return self.data

def get_next(self):
return self.next

def get_previous(self):
return self.previous


class LinkedListIterator:
def __init__(self, head):
Expand Down
Loading