Skip to content

Commit f1ddd6d

Browse files
authored
Update simplified-fractions.py
1 parent 710fdb5 commit f1ddd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/simplified-fractions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def simplifiedFractions(self, n):
1414
for a in xrange(1, b):
1515
g = fractions.gcd(a, b)
1616
lookup.add((a//g, b//g))
17-
return ["{}/{}".format(*fr) for fr in lookup]
17+
return map(lambda x: "{}/{}".format(*x), lookup)

0 commit comments

Comments
 (0)