Minimum Number of Operations to Make Elements in Array Distinct
Remove the first three elements each operation; find how many removals leave a distinct suffix.
Remove the first three elements each operation; find how many removals leave a distinct suffix.