Maximum Number of Distinct Elements After Operations
CodingPhoneSoftware EngineerReported Jan, 2026
Company question banks are included with the Insider plan.
You are given an integer array nums and an integer k.
You are allowed to perform the following operation on each element of the array at most once:
[-k, k]...