Maximum Number of Distinct Elements After Operations
CodingSoftware Engineer
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]...