We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2c88e commit bffdfceCopy full SHA for bffdfce
1 file changed
data_structures/linked_list/doubly_linked_list.py
@@ -210,9 +210,9 @@ def doubly_to_singly(self) -> singly_linked_list.Node | None:
210
>>> head = dll.doubly_to_singly()
211
>>> head.data
212
1
213
- >>> head.next.data
+ >>> head.next_node.data
214
2
215
- >>> head.next.next.data
+ >>> head.next_node.next_node.data
216
3
217
"""
218
0 commit comments