Cody

Problem 1487. Sort complex numbers into complex conjugate pairs

Sort complex numbers into complex conjugate pairs.

Example:

 Input x = [3-6i -1-4i -1+4i 3+6i]
 Sorted output = [-1 - 4i  -1 + 4i   3 - 6i   3 + 6i]

Solution Stats

60.99% Correct | 39.01% Incorrect
Last Solution submitted on Oct 15, 2019