We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Implementation
- Find Digits
- Discussions
Find Digits
Find Digits
Sort by
recency
|
1616 Discussions
|
Please Login in order to post a comment
Python 3
My ugly one liner
JS
Python: def findDigits(n): return sum(1 if j!=0 and n%j==0 else 0 for j in [int(i) for i in str(n)])
Java Code:
Python 3