Find all numbers less than or equal to N formed using array digits
Filed under EPAM
The question
Given an array of digits and a number N, find all valid numbers that can be formed using the given digits (with repetition allowed) that are less than or equal to N.
No write-up yet. Related questions below have one.
Related EPAM questions
Collected from public candidate posts and coding forums. Updated Nov 2026.