Skip to content

Commit a0fe846

Browse files
committed
Create README - LeetHub
1 parent 225c507 commit a0fe846

File tree

1 file changed

+35
-0
lines changed
  • 3345-smallest-divisible-digit-product-i

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<h2><a href="https://leetcode.com/problems/smallest-divisible-digit-product-i/">3345. Smallest Divisible Digit Product I</a></h2><h3>Easy</h3><hr><div><p>You are given two integers <code>n</code> and <code>t</code>. Return the <strong>smallest</strong> number greater than or equal to <code>n</code> such that the <strong>product of its digits</strong> is divisible by <code>t</code>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
6+
<div class="example-block">
7+
<p><strong>Input:</strong> <span class="example-io">n = 10, t = 2</span></p>
8+
9+
<p><strong>Output:</strong> <span class="example-io">10</span></p>
10+
11+
<p><strong>Explanation:</strong></p>
12+
13+
<p>The digit product of 10 is 0, which is divisible by 2, making it the smallest number greater than or equal to 10 that satisfies the condition.</p>
14+
</div>
15+
16+
<p><strong class="example">Example 2:</strong></p>
17+
18+
<div class="example-block">
19+
<p><strong>Input:</strong> <span class="example-io">n = 15, t = 3</span></p>
20+
21+
<p><strong>Output:</strong> <span class="example-io">16</span></p>
22+
23+
<p><strong>Explanation:</strong></p>
24+
25+
<p>The digit product of 16 is 6, which is divisible by 3, making it the smallest number greater than or equal to 15 that satisfies the condition.</p>
26+
</div>
27+
28+
<p>&nbsp;</p>
29+
<p><strong>Constraints:</strong></p>
30+
31+
<ul>
32+
<li><code>1 &lt;= n &lt;= 100</code></li>
33+
<li><code>1 &lt;= t &lt;= 10</code></li>
34+
</ul>
35+
</div>

0 commit comments

Comments
 (0)