#3345

Smallest Divisible Digit Product I

easy · 64.5% accepted · 72 likes · top 68%

math · enumeration

⊣ practice⊣ open on leetcode ↗

Description

You are given two integers n and t. Return the smallest number greater than or equal to n such that the product of its digits is divisible by t.

Solution