Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2007. Find Original Array From Doubled Array
Given an array "changed" that was formed by taking some unknown "original", appending twice each element, and shuffling, return any valid original array or [] if impossible. The core challenge is to determine whether the multiset can be partitioned into pairs (x, 2x) (including special handling for zeros and duplicates) using frequency matching in increasing order.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.