DSA Advanced Problems

Minimum Operations to Make Array Continuous

Replacing any element with any integer, return the fewest replacements that make the values distinct with the largest exactly n minus 1 above the smallest.