Tap here to switch tabs
Problem
Submissions

Problem: First Unique Even Element

First Unique Even Element asks you to scan an integer array and return the first even value that occurs exactly once, or negative one if no qualifying element exists.

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

First Unique Even Element asks you to scan an integer array and return the first even value that occurs exactly once, or negative one if no qualifying element exists.

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