Tap here to switch tabs
Problem
Submissions

Problem: Smallest Absent Positive Greater Than Average

Smallest Absent Positive Greater Than Average asks you to find the smallest positive integer missing from an array and strictly greater than its average, which may be negative.

Statement

Given an integer array nums, determine the smallest positive integer that does not appear in nums and is strictly greater than the average value of all elements in nums.

Constraints:

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

  • −100≤-100 \leq nums[i] ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Smallest Absent Positive Greater Than Average

Smallest Absent Positive Greater Than Average asks you to find the smallest positive integer missing from an array and strictly greater than its average, which may be negative.

Statement

Given an integer array nums, determine the smallest positive integer that does not appear in nums and is strictly greater than the average value of all elements in nums.

Constraints:

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

  • −100≤-100 \leq nums[i] ≤100\leq 100