#3678

Smallest Absent Positive Greater Than Average

pupil · 515 · lc easy +28 · 34.1% accepted · 61 likes · top 12%

Description

Given an integer array nums, find the smallest positive integer not present in nums that is also strictly greater than the average of all elements in nums. Return that integer.

Code

1
2
3