This is (more or less) cribbed from the USC contest winner's solution.
Very fast and very compact solution. Nice usage of complex to calculate distance between points and recursion.
Sort a list of complex numbers based on far they are from the origin.
Remove the polynomials that have positive real elements of their roots.
Determine if a Given Number is a Triangle Number
Specific Element Count
Create a vector whose elements depend on the previous element
ismember: Enhanced Performance for 'rows' and width - Speed Scoring (66% savings)
Vine Contest 1-D Case Optimization: Board 78
Image Processing 003: Interferometer Data Interpolation
Create array of all Distances between two Sets of Points : No Neural Network Toolbox
Tiles Contest: Perfect Solutions for Large Unique Tile Boards
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office