Feb-13-2017, 09:02 PM
(Feb-13-2017, 08:56 PM)nilamo Wrote: Does sqrt = lambda n: n ** 0.5
count as cheating? :p
Yes =p(Feb-13-2017, 08:56 PM)Ofnuts Wrote: Well, you didn't think about the thousands separators either. And this question is more complicated than you think.I tend to want a solution that accepts what most programming languages do for floats (without concern for underflow/overflow), in ASCII and the locale I share with the candidate. So, no "thousands separator" and the decimal separator is a dot rather than a comma. I also don't expect scientific notation, but I appreciate it when candidates suggest it.