This problem needs an update due to changes in scoring system in Cody
You need to specify the comparison method when sorting complex numbers. Any change done to the order of elements currently creates an invalid solution (even sorting elements), and I guess the one that you want is 'real'. Or don't use complex numbers and create pair of values [x,y]. I've commented my solution. Futhermore, the function calculateSize no longer exists.
133 Solvers
Back to basics 22 - Rotate a matrix
768 Solvers
How many trades represent all the profit?
526 Solvers
Generate a string like abbcccddddeeeee
237 Solvers
45 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!