Skip to content

Commit

Permalink
fixed code bug to delete at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vprusso committed May 8, 2019
1 parent c6e769f commit 02e7f0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def delete_node_at_pos(self, pos):
return

prev = None
count = 1
count = 0
while cur_node and count != pos:
prev = cur_node
cur_node = cur_node.next
Expand Down

0 comments on commit 02e7f0d

Please sign in to comment.