Available question text
Given an integer array, repeatedly remove equal-valued pairs and return [number_of_pairs, leftover_count]. This reduces to counting frequencies and summing floor(freq/2) for pairs (leftovers = n - 2*pairs).
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 2341. Maximum Number of Pairs in Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source