Smallest Missing Non-negative Integer After Operations at Atlassian
Medium55.9% acceptance
This problem has 62.5% frequency at Atlassian.
Problem Description
You are given a **0-indexed** integer array `nums` and an integer `value`. In one operation, you can add or subtract `value` from any element of `nums`. * For example, if `nums = [1,2,3]` and `value = 2`, you can choose to subtract `value` from `nums[0]` to make `nums = [-1,2,3]`. The MEX (mi...
Read full problem and hintsTopics
Also asked at 5 companies
More Atlassian Questions
Stock Price FluctuationMediumRank Teams by VotesMediumAll O`one Data StructureHardMerge IntervalsMediumHigh-Access EmployeesMedium
View all Atlassian questions