Available question text
Delete the fewest elements so the remaining array has even length and every consecutive pair (indices 0&1, 2&3, ...) contains two different values. The core challenge is to form as many non-equal adjacent pairs as possible (via a linear greedy scan) and count the elements that must be removed.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2216. Minimum Deletions to Make Array Beautiful
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source