It appears that Alfonso took 7 minutes to solve this challenge.
very clever simplifications (constant term in linear model is irrelevant, and optimal slope can only take a discrete set of values)
Tobias took at least 2 minutes to solve this challenge with Matlab. An elegant usage of a function and a Matlab optimization function. This solution also crushed the GJam BigDataset in 1.2 seconds.
Make a random, non-repeating vector.
3008 Solvers
73 Solvers
276 Solvers
16 Solvers
24 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!