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.
879 Solvers
103 Solvers
33 Solvers
Make a run-length companion vector
520 Solvers
Criss_Cross_000 : Unique elements in a Square array
8 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!