Practice Finding 3-Digit Even Numbers
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Using three different entries of digits in any order, form three-digit even integers without a leading zero. An entry may be used only once per integer, while repeated digit values may be used if supplied by different entries. Return the distinct resulting integers in increasing order.
Source: Finding 3-Digit Even Numbers on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
digits = [2,1,3,0]
Output
[102,120,130,132,210,230,302,310,312,320]
# Example 2
Input
digits = [2,2,8,8,2]
Output
[222,228,282,288,822,828,882]
# Example 3
Input
digits = [3,7,5]
Output
[]
Constraints
3 <= digits.length <= 100
0 <= digits[i] <= 9
Related LeetCode Problems
Practice more problems similar to Finding 3-Digit Even Numbers.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.