Skip to content

Commit a17b08a

Browse files
authored
Update add-two-polynomials-represented-as-linked-lists.py
1 parent a5b3898 commit a17b08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/add-two-polynomials-represented-as-linked-lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ class PolyNode:
55
def __init__(self, x=0, y=0, next=None):
66
pass
77

8+
89
class Solution:
910
def addPoly(self, poly1, poly2):
1011
"""
1112
:type poly1: PolyNode
1213
:type poly2: PolyNode
1314
:rtype: PolyNode
1415
"""
15-
1616
curr = dummy = PolyNode()
1717
while poly1 and poly2:
1818
if poly1.power > poly2.power:

0 commit comments

Comments
 (0)