Skip to content

Commit b6b33e4

Browse files
authored
Update evaluate-division.py
1 parent 026e929 commit b6b33e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/evaluate-division.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def union_set(self, x, y, r):
4040
def query_set(self, x, y):
4141
if x not in self.set or y not in self.set:
4242
return -1.0
43-
(xp, xr), (yp, yr) = map(self.find_set, (x, y))
43+
(xp, xr), (yp, yr) = map(self.find_set, (x, y))
4444
return xr/yr if xp == yp else -1.0
4545

4646

@@ -67,7 +67,7 @@ def union_set(self, x, y, r):
6767
def query_set(self, x, y):
6868
if x not in self.set or y not in self.set:
6969
return -1.0
70-
(xp, xr), (yp, yr) = map(self.find_set, (x, y))
70+
(xp, xr), (yp, yr) = map(self.find_set, (x, y))
7171
return xr/yr if xp == yp else -1.0
7272

7373

0 commit comments

Comments
 (0)