You are given an integer array nums of length n, where each element is either k.
In one operation, you can select an index i such that nums[i] and nums[i + 1] by
Return true if it is possible to make all elements in nums equal using at most k operations, and false otherwise.
Constraints:
nums.length
nums[i] is either
You are given an integer array nums of length n, where each element is either k.
In one operation, you can select an index i such that nums[i] and nums[i + 1] by
Return true if it is possible to make all elements in nums equal using at most k operations, and false otherwise.
Constraints:
nums.length
nums[i] is either