We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7d837b commit e4b78d7Copy full SHA for e4b78d7
Python/self-dividing-numbers.py
@@ -32,5 +32,4 @@ def selfDividingNumbers(self, left, right):
32
:rtype: List[int]
33
"""
34
return [num for num in xrange(left, right+1) \
35
- if not any(itertools.imap(lambda x: x == 0 or num%x != 0,
36
- itertools.imap(int, list(str(num)))))]
+ if not any(itertools.imap(lambda x: int(x) == 0 or num%int(x) != 0, str(num)))]
0 commit comments