3 ms·
One only needs to look at RosettaCode for numerous examples http://rosettacode.org/wiki/Horner%27s_rule_for_polynomial_evaluation#C.2B.2B http://rosettacode.or
by pmarreck 9y ago
One only needs to look at RosettaCode for numerous examples
http://rosettacode.org/wiki/Horner%27s_rule_for_polynomial_evaluation#C.2B.2B http://rosettacode.org/wiki/Horner%27s_rule_for_polynomial_e...
- jstimpfle 9y agoOh come on. First, 20 vs 4 lines, which is 20%. Second, not exactly the most compact C++ version. You can easily make one in 10 lines even in a clean C style. Third, these code-golf comparisons are beyond silly.
- pmarreck 9y ago20% is still impressive and not atypical in my experience from coding in mutable/OO vs. functional languages I wonder what Rust would look like here