Additional test cases have been added.
I am new to MATLAB and this was first problem I created. So happy to see variety of solutions I could not think of! Thanks and enjoy coding!
Bravo! You are the leading solver!
I didn't know "rot90" before. I was looking for it. Thanks!
(I solved this problem with different function.)
Sort a list of complex numbers based on far they are from the origin.
4329 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1498 Solvers
Return the first and last characters of a character array
3473 Solvers
238 Solvers
230 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!