Skip to content

Fix bug for data_structures/linked_list/doubly_linked_list_two.py #12651

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update doubly_linked_list_two.py
  • Loading branch information
MaximSmolskiy authored Apr 1, 2025
commit 11ae98ec45080085a60c2af19823933c68fcadec
3 changes: 1 addition & 2 deletions data_structures/linked_list/doubly_linked_list_two.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@
''
>>> linked_list.insert_at_position(position=1, value=10)
>>> linked_list
LinkedList(head=Node(data=10, previous=None, next=None),
... tail=Node(data=10, previous=None, next=None))
LinkedList(head=Node(data=10, previous=None, next=None), tail=Node(data=10, previous=None, next=None))

Check failure on line 246 in data_structures/linked_list/doubly_linked_list_two.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E501)

data_structures/linked_list/doubly_linked_list_two.py:246:89: E501 Line too long (106 > 88)
>>> str(linked_list)
'10'
>>> linked_list.insert_at_position(position=2, value=20)
Expand Down
Loading