Skip to content
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion linkedlist_nth_to_lastnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def nth_to_lastnode(n, head):

for i in range(n-1):
if right_pointer.nextnode is None:
raise LookupError("LookupError : n is greater than the linked list")
raise LookupError("n is greater than the linked list")
right_pointer = right_pointer.nextnode

while right_pointer.nextnode:
Expand Down