#3490
Count Beautiful Numbers
international master · 2145 · lc hard +32 · 23.2% accepted · 51 likes · top 3%
Description
A positive integer is "beautiful" when its digit product is divisible by its digit sum.
Given integers l and r, return the count of beautiful numbers in the range [l, r] inclusive.
Code
1
2
3