Skip to content

Commit

Permalink
rename variables using underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
shellfly committed Jun 9, 2019
1 parent c462500 commit 91e546e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ ENV/

# mypy
.mypy_cache/

.vscode
2 changes: 1 addition & 1 deletion algs4/bag.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% more tobe.txt
to be or not to - be - - that - - - is
% python stack < tobe.txt
% python bag.py < tobe.txt
to be or not to - be - - that - - - is
"""

Expand Down
2 changes: 1 addition & 1 deletion algs4/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% more tobe.txt
to be or not to - be - - that - - - is
% python stack < tobe.txt
% python stack.py < tobe.txt
to be not that or be (2 left on stack)
"""

Expand Down
4 changes: 2 additions & 2 deletions algs4/utils/linklist.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Node:

def __init__(self, item, nextItem):
def __init__(self, item, next_node):
self.item = item
self.next = nextItem
self.next = next_node


class LinkIterator:
Expand Down
4 changes: 2 additions & 2 deletions algs4/utils/st.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Node:

def __init__(self, key, val, nextItem):
def __init__(self, key, val, next_node):
self.key = key
self.val = val
self.next = nextItem
self.next = next_node


class STKeyIterator:
Expand Down

0 comments on commit 91e546e

Please sign in to comment.