Re:The best engineering interview question I've ever gotten
by sverhagen on Sunday April 17, 2022 @11:35PM
(#31067097)
It seems a simple way of building the "mult" solution as a composition of the existing primitive(s), here "add". But agreed, that I would not find the tradeof acceptable either.
[ Parent
| on HN ]
Re:The best engineering interview question I've ever gotten
by Sohcahtoa82 on Monday April 18, 2022 @01:04PM
(#31073460)
Forget the locking and data race problem...I think about the massive performance problem.
It turns multiplication into O(n) instead of O(log n). `mult 2000` would take 2000 times longer than `mult 2`.
Imagine being able to DoS a server just by asking it to multiply two numbers.