We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710fdb5 commit f1ddd6dCopy full SHA for f1ddd6d
Python/simplified-fractions.py
@@ -14,4 +14,4 @@ def simplifiedFractions(self, n):
14
for a in xrange(1, b):
15
g = fractions.gcd(a, b)
16
lookup.add((a//g, b//g))
17
- return ["{}/{}".format(*fr) for fr in lookup]
+ return map(lambda x: "{}/{}".format(*x), lookup)
0 commit comments