Available question text
Given an integer N and two decimal digits a and b, find the smallest integer strictly greater than N that is a multiple of N and whose decimal representation contains only the digits a and b. The main challenge is exploring a huge space of candidate numbers efficiently using modular arithmetic (searching over remainders, e.g., BFS on states) rather than constructing large integers directly.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1999. Smallest Greater Multiple Made of Two Digits
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source