Skip to content

Practice Unique 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.

Easy#3483
LeetCode Problem

Unique 3-Digit Even Numbers

Problem Statement

You are given an array of digits called digits. Your task is to determine the number of distinct three-digit even numbers that can be formed using these digits. Note: Each copy of a digit can only be used once per number, and there may not be leading zeros.

Source: Unique 3-Digit Even Numbers on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
digits = [1,2,3,4]
Output
12

# Example 2

Input
digits = [0,2,2]
Output
2

# Example 3

Input
digits = [6,6,6]
Output
1

# Example 4

Input
digits = [1,3,5]
Output
0

Constraints

3 <= digits.length <= 10
0 <= digits[i] <= 9

Related LeetCode Problems

Practice more problems similar to Unique 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.