Search
⌘K

Leetcode 2206. Divide Array Into Equal Pairs

Given an array of 2n integers, determine whether its elements can be partitioned into n pairs where both elements in each pair are equal. This is equivalent to verifying that every distinct value appears an even number of times.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.