Tap here to switch tabs
Problem
Submissions

Problem: First Unique Even Element

Try to solve the First Unique Even Element problem.

Statement

Given an integer array nums, find the first even element that appears exactly once in the array.

Return the value of this element. If no such element exists, return −1-1.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 1≤1 \leq nums[i] ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: First Unique Even Element

Try to solve the First Unique Even Element problem.

Statement

Given an integer array nums, find the first even element that appears exactly once in the array.

Return the value of this element. If no such element exists, return −1-1.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 1≤1 \leq nums[i] ≤100\leq 100