Coding since 11yo, that makes it over 30 years now ~~~
Have a PhD in Comp Sci ~~~
Love to go on bike tours ~~~
I try to stay as generalist as I can in this crazy wide place coding is at now.
Fair point Craig, in this case it turns out to be a bunch slower due to the complexity in indexFromBmi.
I just figured it was worth posting as an alternative approach as there are problems where luts are gold. In this case apparently not.
Fair point Craig, in this case it turns out to be a bunch slower due to the complexity in
indexFromBmi
.I just figured it was worth posting as an alternative approach as there are problems where luts are gold. In this case apparently not.
I'd say that here it's best to just use
and be done with it.