And there are many others. I tagged both
integer-arithmetic, since they're only asking about that. Neither is great. The former could do with using
timeit
and comparing to
2 * pow(x,2)
and
2 * x**2
. The latter could do with showing code on line 1 and stating the actual question upfront, not incorporating-by-reference the
sorted_containers
package, which is pretty irrelevant.