Skip to content

Commit

Permalink
removed quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bender committed Mar 25, 2018
1 parent 6ffea92 commit 372f3aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linkedlist/add_two_numbers.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ def __init__(self, x):
self.next = None


def add_two_numbers(left:"Node", right:"Node")->"Node":
def add_two_numbers(left: Node, right: Node )-> Node:
head = Node(0)
current = head
sum = 0
@@ -39,7 +39,7 @@ def add_two_numbers(left:"Node", right:"Node")->"Node":
return head.next


def convert_to_list(number : int) -> "Node":
def convert_to_list(number : int) -> Node:
"""
converts a positive integer into a (reversed) linked list.
for example: give 112
@@ -62,7 +62,7 @@ def convert_to_list(number : int) -> "Node":
print("number must be positive!")


def convert_to_str(l : "Node") -> str:
def convert_to_str(l : Node) -> str:
"""
converts the non-negative number list into a string.
"""

0 comments on commit 372f3aa

Please sign in to comment.