Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
If changed is a doubled array, you should be able to delete elements and their doubled values until the array is empty.
Which element is guaranteed to not be a doubled value? It is the smallest element.
After removing the smallest element and its double from changed, is there another number that is guaranteed to not be a doubled value?