4 ms·
That seems highly questionable. Given the complexity of his brute force algorithm, it was probably significantly more complex, and required more development tim
by benchaney 6y ago
That seems highly questionable. Given the complexity of his brute force algorithm, it was probably significantly more complex, and required more development time than the more elegant solution. The only reason the brute force got its answer first, was because it was the first thing he tried. That’s hardly an advantage of the approach.
- rlonn 6y agoIf you know how to do something, it is usually a lot faster to do it that way, than go looking for alternative solutions. The mantra of highly productive people: Start where you are. Use what you have. Do what you can.
- benchaney 6y agoThis is what I found doubtful. Generally implementing and debugging complex solutions is very time consuming and self education is very efficient.
- barrkel 6y agoWhat you're missing is the discovery time of the elegant solution, and the knowledge required to know that it may exist.
- benchaney 6y agoI’m not missing anything. The time spent to properly understand your problem is generally quite small, and pays itself back many times over.